So i have some code like this:
void foo (int, int);
void bar ( )
{
//Do Stuff
#if (IMPORTANT == 1)
foo (1, 2);
#endif
}
I find a way to do that globally and it works also in c
#define SUPPRESS_UNUSED_WARN(var) \
int _dummy_tmp_##var = ((int)(var) & 0)
then you use it like:
static int foo(int a, int b)
{
// ....
}
SUPRESS_UNUSED_WARN(foo);