Mail Archives: djgpp/1996/11/21/11:00:35
>
> (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
- Raw text -