Date: Thu, 21 Nov 1996 16:45:11 GMT From: kvhk AT ivs4 DOT barco DOT com (Koen Van Herck) Message-Id: <9611211645.AA02602@ivs4.> To: A DOT APPLEYARD AT fs2 DOT mt DOT umist DOT ac DOT uk Cc: DJGPP AT delorie DOT com In-Reply-To: (A.APPLEYARD@fs2.mt.umist.ac.uk) Subject: Re: v2 unwanted warnings Reply-To: Koen DOT VanHerck AT barco DOT com > > (1) It has many functions all of type void name(val N,val T1,val T2){...}. > (val is an 8-byte class type which I declared). These functions MUST be all > the same type, as their addresses are used as values. But some of these > functions don't use some of their parameters. As a result the fault output > is stuffed out with hundreds of `warning: unused parameter' warning lines. > How to stop these warning and still use -Wall for its other useful properties? Try -Wno-unused This no- prefix works for every warning option. Or use __attribute__ ((unused)) for the unused variables. e.g. int foo(int a, int b __attribute__ ((unused))); This will complain if a is unused, but not is b is unused. > (2) Can this warning be suppressed specifically, similarly?:- > `warning: suggest parentheses around assignment used as truth value' Use -Wno-parentheses ---- Koen Van Herck Electronic Design Engineer E-mail: Koen DOT VanHerck AT barco DOT com BBBB AAA RRRR CCC OOO B A R C O V I S U A L S Y S T E M S B B A A R R C O O A division of Barco Projection Systems B BB A AAA R RR C OO O OO B B A A R R C O O Noordlaan 5 Tel +32 (0)56 36 85 71 BBBB A A R R CCC OOO B-8520 Kuurne Fax +32 (0)56 36 83 55