On Thu, May 16, 2002 at 02:24:40PM +1000, Erik de Castro Lopo wrote: > There is AFAIK no way of turning warnings off, only turning more > warnings on.
Wrong. Most of gcc's warnings can be turned on or off. For example, turn turn on unused parameter warnings, use `-Wunused-parameters'. To turn off such warnings, use `-Wno-unused-parameters'. If you turn on a group of warnings together with `-W', `-Wall' or similar, you can individually turn off any warnings in that group by putting the switch to turn the warning off after the one that turns it on. So `-Wunused -Wno-unused-parameters' would turn on all `unused' warnings except those about unused parameters. See `info gcc' for more detail. Cheers, John -- whois [EMAIL PROTECTED] GPG key id: 0xD59C360F http://kirriwa.net/john/ -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
