[Bugs] [Bug 1335231] New: features/locks: clang compile warning in posix.c

bugzilla at redhat.com bugzilla at redhat.com
Wed May 11 15:42:35 UTC 2016


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

            Bug ID: 1335231
           Summary: features/locks: clang compile warning in posix.c
           Product: GlusterFS
           Version: mainline
         Component: locks
          Assignee: bugs at gluster.org
          Reporter: kkeithle at redhat.com
                CC: bugs at gluster.org



Description of problem:

Making all in features
Making all in locks
Making all in src
  CC       common.lo
  CC       posix.lo
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
1 warning generated.


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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

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