Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

Ignore #include GCC directive on C++ code with GCC-4.5

Daniel_M_Intel3
Employee
333 Views

I have a compilation issue with "GCC diagnostic push" on gcc-4.5

How can I make it work to ignore compilation flags on #include directives on gcc-4.5, like it is done on further gcc versions with push/pop?
This is how I done it in gcc-4.8.1:

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wextra"
#include "dependency_header.h"
#pragma GCC diagnostic pop

0 Kudos
1 Reply
Viet_H_Intel
Moderator
333 Views

 

Hi Daniel,

What version of Intel compiler are you using? it's possible to provide a test case?

Thanks,

Viet

0 Kudos
Reply