how to disable the warning (seems not one common warning )for this code sample in c++/gcc compile? -
how disable warning code sample in c++/gcc compile? warning seems isn't common warning. how disable it?
is similar followed code?
#pragma gcc diagnostic push #pragma gcc diagnostic ignored "-wunused-variable" //i don't know ignore code in pic. #include "subfolder/classtwo.h" #pragma gcc diagnostic pop
but ignore what?
i tried 1 answer pop 1 error:
#pragma gcc diagnostic push
it pop:
warning: expected [error|warning|ignored] after â#pragma gcc diagnosticâ
it strange see warning popping in boost. compiler flag disable warning -wno-reorder
, per gcc's man page.
in case, can use:
#pragma gcc diagnostic ignored "-wreorder"
Comments
Post a Comment