/* Increase CC-RX warning level by using -message option * See JapanRenesasRulz post : https://japan.renesasrulz.com/cafe_rene/f/forum5/4421/thread/23330#23330 */ /* /* nested comment */ int func(int, int, int, int); volatile void sub1(int); volatile int sub2(int); volatile static int var = 1;; /* See FIT BSP source files : r_bsp\board\XXXX\lowsrc.c, r_bsp\mcu\YYYY\mcu_interrupts.c * See also JapanRenesasRulz post : https://japan.renesasrulz.com/cafe_rene/f/forum5/4059/sci/20672#20672 */ /* This macro is used to suppress compiler messages about a parameter not being used in a function. The nice thing * about using this implementation is that it does not take any extra RAM or ROM. */ #define INTERNAL_NOT_USED(p) ((void)(p)) int func(int arg1, int arg2, int arg3, int arg4) { unsigned char ch; arg1; INTERNAL_NOT_USED(arg2); #if INTERNAL_NOT_USED INTERNAL_NOT_USED(arg3); #endif /* INTERNAL_NOT_USED */ sub1(ch); ch = sub2(arg4); while (1) { volatile unsigned char ch; } while (1) {} return ch; }