In [email protected]
“[ruby-gnome2-devel-en] is it possible to use -Werror compile?” on
Tue, 8 Apr 2008 15:58:52 +0200,
“Guillaume C.” [email protected] wrote:
I have noticed that when binding a non existent function (for example,
when you do a typo), the source code and library will still build.
Only a warning is emitted by gcc (warning: implicit declaration of
Is there maybe a good reason to not activate -Werror? It would help
make these errors impossible…
Does this mean the following?
— glib/src/lib/mkmf-gnome2.rb (revision 2999)
+++ glib/src/lib/mkmf-gnome2.rb (working copy)
@@ -28,7 +28,7 @@
if macro_defined?(“GNUC”, “”)
- $CFLAGS += ’ -Wall -Werror’
$cc_is_gcc = true
This may cause have_library/have_func failures in existing
extconf.rb. If we can confirm all extconf.rb, we will be
able to add -Werror.
BTW, a warning is not useful for this? We will be able to
find some warnings with ‘make > /dev/null’. I hope there are
no warnings in Ruby-GNOME2 products.