In the keil_8051/9.60 compiler, this code:
void *list_traverse(void *arg) { void *result = NULL; (void)arg; return result;}
generates the warning:
*** WARNING C275 IN LINE 124 OF C:\...\list.c: expression with possibly no effect
My understanding that with most compilers, the (void)arg construct specifically indicates that arg is to be ignored.
(void)arg
arg
With the Keil compiler, what's the correct way to inhibit this warning?
Cx51 User's Guide: Errors and Warnings (keil.com)
Cx51 User's Guide: WARNINGLEVEL Compiler Directive (keil.com)
Is there a way to disable specific warnings ? - Keil forum - Support forums - Arm Community