[Bugs] [Bug 1336506] New: JBR: compiler warning fmt string

bugzilla at redhat.com bugzilla at redhat.com
Mon May 16 16:45:07 UTC 2016


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

            Bug ID: 1336506
           Summary: JBR: compiler warning fmt string
           Product: GlusterFS
           Version: mainline
         Component: jbr
          Assignee: bugs at gluster.org
          Reporter: kkeithle at redhat.com
                CC: bugs at gluster.org



Description of problem:

Making all in jbr-server
Making all in src
  CC       jbr-cg.lo
jbr-cg.c: In function 'jbr_get_fd_ctx':
jbr-cg.c:128:52: warning: cast from pointer to integer of different size
[-Wpointer-to-int-cast]
                         if (__fd_ctx_set(fd, this, (uint64_t)ctx_ptr) == 0) {
                                                    ^
In file included from ../../../../libglusterfs/src/common-utils.h:35:0,
                 from ../../../../libglusterfs/src/circ-buff.h:14,
                 from ../../../../libglusterfs/src/event-history.h:15,
                 from ../../../../libglusterfs/src/xlator.h:18,
                 from ../../../../libglusterfs/src/call-stub.h:14,
                 from jbr-cg.c:17:
jbr-cg.c: In function 'jbr_next_entry':
jbr-cg.c:10122:33: warning: format '%ld' expects argument of type 'long int',
but argument 10 has type 'ssize_t {aka int}' [-Wformat=]
                                 "got %ld/%d bytes for next entry",
                                 ^
../../../../libglusterfs/src/logging.h:213:51: note: in definition of macro
'gf_msg'
                         levl, errnum, 0, msgid, ##fmt);         \
                                                   ^~~
  CCLD     jbr.la




Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

-- 
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