We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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?
The linker has it's own parameters. So for example I pass
# Empty region warningLDFLAGS+= --diag_suppress=6312
to the linker.