Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22002

How can I ignore all warnings from included headers in clang/gcc?

$
0
0

I want to use #pragma clang diagnostic push to ignore warnings from some included header files. So I write this:

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wall"
#include "SpinGenApi/SpinnakerGenApi.h"
#include "Spinnaker.h"
#pragma clang diagnostic pop

But still the compiler prints warnings when compiling the file with this code. What do I need to change so that all warnings are ignored for these headers?


Viewing all articles
Browse latest Browse all 22002

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>