Should warnings be issued for unrecognised pragmas ?
Nick Clifton
nickc@cygnus.com
Fri Oct 17 14:36:00 GMT 1997
> Date: Fri, 17 Oct 1997 11:04:36 -0400 (EDT)
> From: meissner@cygnus.com
>
> | I am currently writting a patch for gcc2 that implements a new command
> | line option '-wunrecognised-pragmas' which will cause warning messages
> | to be generated when GCC encounters pragmas which is does not handle.
> | At the moment this patch also enables these warnings if -Wall is
> | enabled, expect for the case where the pragmas are in system header
> | files. Is this the right thing to do ?
>
> Please change -wunrecognised-pragmas to -Wunrecognized-pragmas for consistancy.
Whoops, sorry, that was a typo. The new command line option actually
does use a capital W.
Nick
More information about the Gcc
mailing list