On 10/04/2010 12:15 PM, Dmitry V. Levin wrote:
In summary, please turn off -Werror when compiling gnulib code. We don't
guarantee the absence of warnings.
The project where -Werror is enabled by default is GNU grep. If the
statement that gnulib code may emit -Wcast-align warnings is correct, then
I suggest to remove either -Wcast-align or $(WERROR_CFLAGS) when compiling
gnulib in grep.
Jim maintains both grep and coreutils. In coreutils, his solution is to
manually disable compiler flags known to be incompatible with gnulib
while still using -Werror for the flags that are okay; such that the
gnulib portion of coreutils is compiled with fewer warnings than the
coreutils portion. It shouldn't be too hard to use that same paradigm
in grep.
--
Eric Blake [email protected] +1-801-349-2682
Libvirt virtualization library http://libvirt.org