Re: flag question

2008-04-26 Thread Bob Proulx
Thomas Dickey wrote: Bob Friesenhahn wrote: These options only work with GCC. If the compiler is GCC you can use them, otherwise skip them. The Intel compiler recognizes -Wall and -Werror (but not -pedantic in the version I have at hand). The Intel compiler was actively trying to be

flag question

2008-04-25 Thread NightStrike
-Wall and -pedantic... AM_CFLAGS or AM_CPPFLAGS?

Re: flag question

2008-04-25 Thread Peter O'Gorman
NightStrike wrote: -Wall and -pedantic... AM_CFLAGS or AM_CPPFLAGS? Neither. Neither are portable, so the do not belong in the Makefile.am, check for gcc in configure and append them to CFLAGS if they work. Peter -- Peter O'Gorman http://pogma.com

Re: flag question

2008-04-25 Thread NightStrike
On 4/25/08, Peter O'Gorman [EMAIL PROTECTED] wrote: NightStrike wrote: -Wall and -pedantic... AM_CFLAGS or AM_CPPFLAGS? Neither. Neither are portable, so the do not belong in the Makefile.am, check for gcc in configure and append them to CFLAGS if they work. I didn't know they weren't

Re: flag question

2008-04-25 Thread Bob Friesenhahn
On Fri, 25 Apr 2008, NightStrike wrote: On 4/25/08, Peter O'Gorman [EMAIL PROTECTED] wrote: NightStrike wrote: -Wall and -pedantic... AM_CFLAGS or AM_CPPFLAGS? Neither. Neither are portable, so the do not belong in the Makefile.am, check for gcc in configure and append them to CFLAGS if

Re: flag question

2008-04-25 Thread Ralf Wildenhues
* Bob Friesenhahn wrote on Fri, Apr 25, 2008 at 11:32:34PM CEST: On Fri, 25 Apr 2008, NightStrike wrote: Is there a configure test to see if -Wall works? These options only work with GCC. If the compiler is GCC you can use them, otherwise skip them. FWIW, icc supports -Wall, too. For a

Re: flag question

2008-04-25 Thread Thomas Dickey
On Fri, 25 Apr 2008, Bob Friesenhahn wrote: On Fri, 25 Apr 2008, NightStrike wrote: On 4/25/08, Peter O'Gorman [EMAIL PROTECTED] wrote: NightStrike wrote: -Wall and -pedantic... AM_CFLAGS or AM_CPPFLAGS? Neither. Neither are portable, so the do not belong in the Makefile.am, check for gcc