Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Daniel_M_Intel3
Employee
79 Views

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

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
79 Views

 

Hi Daniel,

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

Thanks,

Viet

Reply