Skip to contentSkip to conversation

I suggest to add -Wall to autoconf and autoheader calls

RFC Felix Zielcke 2 participants 3 messages Sep 4, 2008

lore
Share & tools
lore
#0 lore raw

With my configure.ac autoconf[0] topic I just got the idea to add -Wall' option to autoconf' in `autogen.sh'

We're using -Wall for gcc so why not for autoconf and autoheader too?

Then once in a while someone will hopefully notice that something might need a change and will look into it.

[0] http://lists.gnu.org/archive/html/grub-devel/2008-09/msg00090.html

Signature · 1 line
Felix Zielcke
#1 lore raw
Quoted 7 lines · Felix Zielcke

With my configure.ac autoconf[0] topic I just got the idea to add -Wall' option to autoconf' in `autogen.sh'

We're using -Wall for gcc so why not for autoconf and autoheader too?

Then once in a while someone will hopefully notice that something might need a change and will look into it.

Fine, but only if we decide to fix the existing warnings. I'm not sure it's worth the trouble. Just because a macro is considered obsolete, it's not necessarily broken. End users won't run Autoconf, so they won't have problems if a newer Autoconf removes an obsolete macro.

Compiler warnings are more likely to indicate a problem with the compiled code than autoconf warnings. They can also indicate problems with different compilers, and users will use different compilers.

Signature · 2 lines
Regards,
Pavel Roskin
#2 lore raw

Am Donnerstag, den 04.09.2008, 12:44 -0400 schrieb Pavel Roskin:

Quoted 4 lines

Fine, but only if we decide to fix the existing warnings. I'm not sure it's worth the trouble. Just because a macro is considered obsolete, it's not necessarily broken. End users won't run Autoconf, so they won't have problems if a newer Autoconf removes an obsolete macro.

All obsolete things should be mostly fixed by running `autoupdate' For fixing the other kind of warnings I'll need to find out more about that autoconf stuff.

With -Wall hopefully someone notices that he just introduced a warning with his change and trys to fix this before commiting.

Quoted 3 lines

Compiler warnings are more likely to indicate a problem with the compiled code than autoconf warnings. They can also indicate problems with different compilers, and users will use different compilers.

This would be just more consistent.
But yes for the compiler and so for the code itself this is more important.

Signature · 1 line
Felix Zielcke