how to disable the warning (seems not one common warning )for this code sample in c++/gcc compile? -


enter image description here

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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -