Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
7683 Discussions

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

Daniel_M_Intel3
Employee
161 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
161 Views

 

Hi Daniel,

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

Thanks,

Viet

Reply