All of lore.kernel.org
 help / color / mirror / Atom feed
* Disable -Werror when error attribute generates warnings
@ 2010-01-02 12:58 Grégoire Sutre
  2010-01-02 15:37 ` Colin Watson
  0 siblings, 1 reply; 8+ messages in thread
From: Grégoire Sutre @ 2010-01-02 12:58 UTC (permalink / raw)
  To: The development of GNU GRUB

Hi,

With an older version of gcc that does not understand the error 
attribute, gcc generates warnings when compiling files that include 
include/grub/list.h.  Since TARGET_CFLAGS contains -Werror by default, 
the build of modules fails.

The following patch checks whether the C compiler supports the error 
attribute without warning, and disables -Werror if that is not the case 
(as otherwise the build will fail).

http://pkgsrc-wip.cvs.sourceforge.net/viewvc/*checkout*/pkgsrc-wip/wip/grub2-current/patches/patch-gcc-warning-on-error-attribute

This is merely a suggestion.  I'm no autoconf expert, and I'm not even 
sure that this kind of check is a good idea, as configure has the option 
--disable-werror that can be used anyway.

Grégoire

p.s. I did not see this problem when I tested the patch discussed in the 
thread [1] as I focused on building utilities at that time, sorry.

[1] http://lists.gnu.org/archive/html/grub-devel/2009-12/msg00324.html



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-01-03 21:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-02 12:58 Disable -Werror when error attribute generates warnings Grégoire Sutre
2010-01-02 15:37 ` Colin Watson
2010-01-02 18:05   ` Grégoire Sutre
2010-01-02 18:21   ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-01-03 16:47     ` Robert Millan
2010-01-03 21:48     ` Colin Watson
2010-01-03 16:46   ` Robert Millan
2010-01-03 21:55     ` Colin Watson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.