g++ alternative to Java's @SuppressWarnings annotation

105 views Asked by At

In Java, if there is a warning that should be ignored we can suppress warnings on it like this:

@SuppressWarnings("unused")
public void functionCalledExternally(){
    //code
}

What I can use to suppress a specific instance of a specific warning in g++?

0

There are 0 answers