Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GCC warning flag for Semantic Issue

Tags:

xcode

gcc

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"

like image 964
Tuyen Nguyen Avatar asked Nov 05 '22 10:11

Tuyen Nguyen


1 Answers

#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.

like image 65
Gregory Pakosz Avatar answered Nov 14 '22 21:11

Gregory Pakosz