I have recently moved from gcc-4.2.4 to gcc-4.8.1. What are the recommended gcc warning options at O2 optimization level in gcc-4.8.1?
I have been using following warning flags in gcc-4.2.4: -Wall -Wno-parentheses -Wpointer-arith -Wcast-align -Wsign-compare -Wnon-virtual-dtor -Wnon-template-friend -Woverloaded-virtual -Wsign-promo
The convention I promote is:
-Wall -Wextra -pedantic
Visit the GCC documentation for details on which specific flags this turns on.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With