syntax error in source3/locking/brlock.c

Thomas Schulz schulz at adi.com
Fri Mar 6 11:26:43 MST 2015


I have been building 4.2.0 on Solaris 10 using the GNU C compiler. I decided
to see what happens with Sun's C 5.11 SunOS_i386 compiler. It complains
with the following error:

"../source3/locking/brlock.c", line 2008: syntax error before or at: }
cc: acomp failed for ../source3/locking/brlock.c

The offending line is:

        *br_lck = (struct byte_range_lock) {};

The GNU C compiler thinks that this line is OK. Does anyone have an
idea what is intended here and why the Sun compiler does not like it?

Tom Schulz
Applied Dynamics Intl.
schulz at adi.com


More information about the samba-technical mailing list