[Bugs] [Bug 1708163] New: tests: fix bug-1319374.c compile warnings.

bugzilla at redhat.com bugzilla at redhat.com
Thu May 9 09:19:59 UTC 2019


https://bugzilla.redhat.com/show_bug.cgi?id=1708163

            Bug ID: 1708163
           Summary: tests: fix bug-1319374.c compile warnings.
           Product: GlusterFS
           Version: mainline
            Status: NEW
         Component: tests
          Assignee: bugs at gluster.org
          Reporter: ravishankar at redhat.com
                CC: bugs at gluster.org
  Target Milestone: ---
    Classification: Community



Description of problem:

    tests: fix bug-1319374.c compile warnings.

    I was looking at a downstream failure of bug-1319374-THIS-crash.t when I
    saw the compiler was throwing a warning while running the test:

    tests/bugs/gfapi/bug-1319374.c:17:61: warning: implicit declaration of
function ‘strerror’; did you mean ‘perror’? [-Wimplicit-function-declaration]
             fprintf(stderr, "\nglfs_new: returned NULL (%s)\n",
strerror(errno));
                                                                 ^~~~~~~~
                                                                 perror

    So I compiled the .c with -Wall and saw a lot many more warnings, all
    due of a missing header.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list