We are using g ++ 4.4.3, and one of our third-party libraries is causing an excellent error.
/usr/include/++/4.4/backward/backward_warning.h: 28: 2: warning: #warning This file contains at least one obsolete or obsolete header, which may be deleted without further notice in the future. Instead, use a non-legacy interface with equivalent functionality. For a list of replacement headers and interfaces, refer to the backward_warning.h file. To disable this warning, use -Wno-deprecated.
Since this is a third-party library, I cannot fix this problem, so I just want to tell the compiler to suppress this warning for a single H file that causes the problem.
I tried a few things with
#pragma GCC diagnostic ignored "-Wdeprecated"
but I canβt find which warning to indicate (no "-Wdeprecated").
How can I suppress this warning for only one offensive file H? I hope to do something like this:
// Turn off the warning
source share