-Wall is fine, but compiling anything that uses wxWidgets with
-pedantic is simply
impossible.
Hey, we're talking about wxWidgets... :lol:
The reason why it takes so long to build your project is that literally gigabytes of warning messages are being piped to the log window during the build.
As a sidenote:As you all know, compiling wxWidgets from source takes quite some time, too, especially with gcc.
One day, Tiwag gave me the tip to add
1>nul 2>nul to the commandline, so the 15 million warning messages would go down the drain right away instead of being piped to the console.
Guess what: this cuts the build time to one half!
EDIT: Sorry, I just saw that I did not answer to the question at all. gcc has no such pragma. What could possibly help is to put everything wx-related into one target (if that's possible) and turn off the
-pedantic switch in that target.