Turning off warnings is generally an
extremely bad idea, no matter for what reason.
It is maybe disputable whether all compiler warnings that come with with switches like
-Wall or
-pedantic are really that severe (at least if you don't intend to write portable code).
However, warnings that appear
without explicitely asking for more warnings should be taken seriously. If possible at all, you should modify your code so it does no longer produce warnings, else you can run into very nasty problems. In the best case, your code will only be non-portable, in the worst case it may crash and burn out of the blue and you don't know why.
Always remember, the compiler is your friend, not your enemy. If the compiler tells you that what you do is probably wrong, then it is probably wrong
However, if you
still want to do it, choose "Inhibit all warning messages" from compiler options (accessible via "Build Options" in the project manager menu), or pass
-w to
gcc.