[Bugs] [Bug 1335231] features/locks: clang compile warning in posix.c
bugzilla at redhat.com
bugzilla at redhat.com
Wed May 11 16:13:40 UTC 2016
https://bugzilla.redhat.com/show_bug.cgi?id=1335231
--- Comment #2 from Vijay Bellur <vbellur at redhat.com> ---
COMMIT: http://review.gluster.org/14296 committed in master by Pranith Kumar
Karampuri (pkarampu at redhat.com)
------
commit c769f5dbcad1492854f9fd7f1baae400d6bfeee9
Author: Soumya Koduri <skoduri at redhat.com>
Date: Wed May 11 21:41:02 2016 +0530
locks: Fix a compile warning to use labs instead of abs
This addresses below compile warning generated -
posix.c:2260:32: warning: absolute value function 'abs' given an argument
of type 'off_t' (aka 'long') but has parameter of type 'int' which may cause
truncation of value [-Wabsolute-value]
flock->l_len = abs (flock->l_len);
^
posix.c:2260:32: note: use function 'labs' instead
flock->l_len = abs (flock->l_len);
^~~
labs
Change-Id: Ifd8c5442de4076a2d4425487eb119ce89097779d
BUG: 1335231
Signed-off-by: Soumya Koduri <skoduri at redhat.com>
Reviewed-on: http://review.gluster.org/14296
Smoke: Gluster Build System <jenkins at build.gluster.com>
Reviewed-by: Kaleb KEITHLEY <kkeithle at redhat.com>
Tested-by: Kaleb KEITHLEY <kkeithle at redhat.com>
NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
CentOS-regression: Gluster Build System <jenkins at build.gluster.com>
Reviewed-by: Pranith Kumar Karampuri <pkarampu at redhat.com>
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=SaNBBFP2aW&a=cc_unsubscribe
More information about the Bugs
mailing list