On Thu, Aug 26, 2004 at 08:11:23PM -0400, Dan Espen wrote: > Chris Ross <[EMAIL PROTECTED]> writes: > > > > Hey there. I have a small problem, that will require > > changes to configure to solve. On my Solaris machine, > > there are #pragma's in some of the openwin X headers > > that gcc (3.3.2) doesn't like. This is easily solvable > > with "-wunknown-pragmas", but if I put that in CFLAGS > > on the configure command-line environment, it will > > append "-Wall", thus cancelling it out. > > If I understand the question, I'd ifdef in the pragmas, > only when the sun compiler is being used.
At least on my Solaris boxes, #pragma ident is the only pragma in /usr/openwin/include. Gcc (3.3.3 here) seems to warn about those if either -Wall or -Wunknown-pragmas is used, but passes through it just fine; i.e., it's just build noise. I assume, Chris, that what you would like to do here is gcc ... -Wall -Wno-unknown-pragmas ... ? Note that almost all Solaris include files have #pragma ident; it's just part of the version control stuff that Sun uses. Danek -- Visit the official FVWM web page at <URL:http://www.fvwm.org/>. To unsubscribe from the list, send "unsubscribe fvwm-workers" in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]