Is there a way to suppress the warning message thrown by #warning
from only a specific header file?
// file foo.hh
#ifndef FOO_HH
#define FOO_HH
#warning "Foo"
#endif // FOO_HH
// file main.cpp
#include "foo.hh"
int main()
{
return 0;
}
The target compilers are GCC, Clang and Intel.