bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] mbsstr: fix warnings reported by gcc -Wcast-align on ARM


From: Eric Blake
Subject: Re: [PATCH] mbsstr: fix warnings reported by gcc -Wcast-align on ARM
Date: Mon, 04 Oct 2010 12:20:19 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100921 Fedora/3.1.4-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.4

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   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]