Skip to content

Warnings in master branch: src area #9983

Open
@rhc54

Description

@rhc54

Building CentOS with gcc 8.5.0 compiler:

src/mem/mpl_trmem.c:164:13: warning: function declaration isnt a prototype [-Wstrict-prototypes]
 static void init_classes()
             ^~~~~~~~~~~~
In file included from ./include/mpl.h:21,
                 from src/mem/mpl_trmem.c:15:
src/mem/mpl_trmem.c: In functionMPL_trvalid2’:
src/mem/mpl_trmem.c:649:18: warning: format ‘%pexpects argument of typevoid *’, but argument 4 has typeTRSPACE *’ {akastruct TRSPACE *’} [-Wformat=]
                 ("[%d] Block at address %p is corrupted (invalid cookie in head)\n",
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                  world_rank, head + 1);
                              ~~~~~~~~
./include/mpl_msg.h:12:46: note: in definition of macroMPL_error_printf#define MPL_error_printf(...) fprintf(stderr,__VA_ARGS__)
                                              ^~~~~~~~~~~
src/mem/mpl_trmem.c: In functionMPL_strdup_no_spaces’:
src/mem/mpl_trmem.c:987:23: warning: comparison of integer expressions of different signedness: ‘intandsize_t’ {aka ‘long unsigned int’} [-Wsign-compare]
     for (int i = 0; i < strlen(str); i++) {

src/sock/mpl_sock.c: In functionMPL_large_writev’:
src/sock/mpl_sock.c:57:22: warning: comparison of integer expressions of different signedness: ‘ssize_t’ {aka ‘long int’} andsize_t’ {akaconst long unsigned int’} [-Wsign-compare]
         else if (tmp < iov[i].iov_len) {
                      ^
src/sock/mpl_sock.c: In functionMPL_large_readv’:
src/sock/mpl_sock.c:107:22: warning: comparison of integer expressions of different signedness: ‘ssize_t’ {aka ‘long int’} andsize_t’ {akaconst long unsigned int’} [-Wsign-compare]
         else if (tmp < iov[i].iov_len) {
                      ^
src/str/mpl_argstr.c: In functiondecode_buffer’:
src/str/mpl_argstr.c:73:32: warning: format ‘%Xexpects argument of typeunsigned int *’, but argument 3 has typeint *’ [-Wformat=]
         if (0 == sscanf(hex, "%X", &value))
                               ~^   ~~~~~~
                               %X
src/gavl/mpl_gavl.c: In functionMPL_gavl_tree_delete_range’:
src/gavl/mpl_gavl.c:449:3: warning: labelfn_fail’ defined but not used [-Wunused-label]
   fn_fail:
   ^~~~~~~
src/gavl/mpl_gavl.c: In functionMPL_gavl_tree_delete_start_addr’:
src/gavl/mpl_gavl.c:474:3: warning: labelfn_fail’ defined but not used [-Wunused-label]
   fn_fail:
   ^~~~~~~
In file included from ./mpl/include/mpl_dbg.h:10,
                 from ./mpl/include/mpl_argstr.h:14,
                 from ./mpl/include/mpl.h:13,
                 from ./adio/include/adioi.h:1044,
                 from ./adio/include/adio.h:435,
                 from adio/common/ad_read_coll.c:6:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions