Invalid C99 in source3/locking/brlock.c
Albert Chin
samba-technical at mlists.thewrittenword.com
Wed Feb 18 15:30:25 MST 2015
source3/locking/brlock.c has the following code:
*br_lck = (struct byte_range_lock) {};
According to GCC -pedantic, this isn't standard-conforming (and the
Sun C compiler doesn't like it either). GCC warns with "warning: ISO C
forbids empty initializer braces". The fix is trivial. Just change to:
*br_lck = (struct byte_range_lock) {{0}};
This occurs in master and v4-2-test.
--
albert chin (china at thewrittenword.com)
More information about the samba-technical
mailing list