[Bugs] [Bug 1402261] New: cli: compile warnings (unused var) if building without bd xlator

bugzilla at redhat.com bugzilla at redhat.com
Wed Dec 7 07:05:18 UTC 2016


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

            Bug ID: 1402261
           Summary: cli: compile warnings (unused var) if building without
                    bd xlator
           Product: GlusterFS
           Version: mainline
         Component: cli
          Severity: low
          Assignee: bugs at gluster.org
          Reporter: madam at redhat.com
                CC: bugs at gluster.org



Description of problem:

building wthout bd xlator, we get compiler warnings in cli:

  CC       cli-rpc-ops.o
cli-rpc-ops.c: In function ‘gf_cli_get_volume_cbk’:
cli-rpc-ops.c:846:36: warning: variable ‘caps’ set but not used
[-Wunused-but-set-variable]
         char                      *caps                 = NULL;
                                    ^~~~
  CC       cli-cmd-parser.o
  CC       cli-cmd-system.o
  CC       cli-cmd-misc.o
  CC       cli-xml-output.o
cli-xml-output.c: In function ‘cli_xml_output_vol_info’:
cli-xml-output.c:2605:34: warning: variable ‘caps’ set but not used
[-Wunused-but-set-variable]
         char                    *caps = NULL;
                                  ^~~~
  CC       cli-quotad-client.o


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

main

How reproducible:

always

Steps to Reproduce:
1. ./configure
2. make
3. look at output

Actual results:

compile warnings

Expected results:

no warnings

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