user34537
user34537

Reputation:

gcc -Wall but suppress -Wunknown-pragmas

-Wall enables a warning I do not want, specifically -Wunknown-pragmas. How to tell GCC to suppress these warnings after it is enabled by -Wall?

Upvotes: 4

Views: 2426

Answers (1)

CB Bailey
CB Bailey

Reputation: 792717

gcc -Wall -Wno-unknown-pragmas

should work.

Upvotes: 16

Related Questions