#Pragma diag_suppress Operation

uVision5.31 Armcc V5.06 update 6

I am trying to use #pragma statements to suppress not referenced warnings for a function.


From the manual I think I need:

#pragma push
#pragma diag_suppress 177
void UnReferencedFunction(void)
{
..... 
}
#pragma pop


But this doesn't work, I still get "#177-D declared but never referenced" warnings; I have tried different versions of the #pragma diag_suppress 177 statement: including the hash, including the '-D', leading zero; but I just cannot get it to work.

Has anyone got this working?

Parents Reply Children
No data