Bug 1335230
| Summary: | protocol/client: clang compile warnings in client-helpers.c | ||
|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | Kaleb KEITHLEY <kkeithle> |
| Component: | protocol | Assignee: | Pranith Kumar K <pkarampu> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | mainline | CC: | atumball, bugs |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | glusterfs-3.12.0 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-08-27 03:52:57 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Sent as part of http://review.gluster.org/#/c/15010/ |
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: