Tuyen Nguyen
Tuyen Nguyen

Reputation: 4479

GCC warning flag for Semantic Issue

I'd like to silence Semantic Issue warning but I don't know the warning flag for this type. Do you know the flag name?

ie: #pragma GCC diagnostic ignored "-Wsequence-point"

Upvotes: 5

Views: 1008

Answers (1)

Gregory Pakosz
Gregory Pakosz

Reputation: 70224

#pragma GCC diagnostic can only be used with options shown by -fdiagnostics-show-option

Compile with -fdiagnostics-show-option to see whether there is some [-Wfoo] at the end of the warning message.

Upvotes: 2

Related Questions