Bug 1336506 - JBR: compiler warning fmt string
Summary: JBR: compiler warning fmt string
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: GlusterFS
Classification: Community
Component: jbr
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Sheetal Pamecha
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-16 16:45 UTC by Kaleb KEITHLEY
Modified: 2019-11-26 18:20 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-04-17 09:54:28 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Kaleb KEITHLEY 2016-05-16 16:45:07 UTC
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:

Comment 2 Yaniv Kaul 2019-04-17 09:54:28 UTC
commit 8293d21280fd6ddfc9bb54068cf87794fc6be207
Author: Amar Tumballi <amarts>
Date:   Thu Dec 6 12:29:25 2018 +0530

    all: remove code which is not being considered in build
    
    These xlators are now removed from build as per discussion/announcement
    done at https://lists.gluster.org/pipermail/gluster-users/2018-July/034400.html
    
    * move rot-13 to playground, as it is used only as demo
      purpose, and is documented in many places.
    
    * Removed code of below xlators:
      - cluster/stripe
      - cluster/tier
      - features/changetimerecorder
      - features/glupy
      - performance/symlink-cache
      - encryption/crypt
      - storage/bd
      - experimental/posix2
      - experimental/dht2
      - experimental/fdl
      - experimental/jbr   <-------


Note You need to log in before you can comment on or make changes to this bug.