Bug 1335230 - protocol/client: clang compile warnings in client-helpers.c
Summary: protocol/client: clang compile warnings in client-helpers.c
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: protocol
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Pranith Kumar K
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-11 15:38 UTC by Kaleb KEITHLEY
Modified: 2018-08-27 03:52 UTC (History)
2 users (show)

Fixed In Version: glusterfs-3.12.0
Clone Of:
Environment:
Last Closed: 2018-08-27 03:52:57 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Kaleb KEITHLEY 2016-05-11 15:38:47 UTC
Description of problem:

Making all in src
  CC       client.lo
  CC       client-helpers.lo
client-helpers.c:1163:30: warning: address of 'local->loc' will always evaluate to 'true' [-Wpointer-bool-conversion]
                if (!&local->loc) {
                    ~ ~~~~~~~^~~
client-helpers.c:1174:30: warning: address of 'local->loc' will always evaluate to 'true' [-Wpointer-bool-conversion]
                if (!&local->loc) {
                    ~ ~~~~~~~^~~
client-helpers.c:1197:30: warning: address of 'local->loc' will always evaluate to 'true' [-Wpointer-bool-conversion]
                if (!&local->loc) {
                    ~ ~~~~~~~^~~
client-helpers.c:1342:30: warning: address of 'local->loc' will always evaluate to 'true' [-Wpointer-bool-conversion]
                if (!&local->loc) {
                    ~ ~~~~~~~^~~
client-helpers.c:1360:30: warning: address of 'local->loc' will always evaluate to 'true' [-Wpointer-bool-conversion]
                if (!&local->loc) {
                    ~ ~~~~~~~^~~
client-helpers.c:1386:30: warning: address of 'local->loc' will always evaluate to 'true' [-Wpointer-bool-conversion]
                if (!&local->loc) {
                    ~ ~~~~~~~^~~
client-helpers.c:1417:30: warning: address of 'local->loc' will always evaluate to 'true' [-Wpointer-bool-conversion]
                if (!&local->loc) {
                    ~ ~~~~~~~^~~
7 warnings generated.


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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Anuradha 2016-08-09 07:02:47 UTC
Sent as part of http://review.gluster.org/#/c/15010/


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