Originally posted by set135
There are few examples in the Linux kernel
#pragma GCC diagnostic ignored "-Wsuggest-attribute=format"
Best practise is really to leave as many compiler error detections on as you can and tag out the areas that those features don't work.
Linus will accept patches that disable invalid warnings from being displayed he will be demanding you have confirmation from the compiler developer before submit the patch or he will have your head.
Comment