Skip to content

Instantly share code, notes, and snippets.

@iddm
Created December 1, 2017 11:20
Show Gist options
  • Save iddm/23e1150398eee396f118e3ff664d8086 to your computer and use it in GitHub Desktop.
Save iddm/23e1150398eee396f118e3ff664d8086 to your computer and use it in GitHub Desktop.
C++ strict compiler flags
-Wall -Werror -Wextra -Wno-unused -Wcast-align -Wcast-qual -Wctor-dtor-privacy
-Wdisabled-optimization -Wformat=2 -Winit-self -Wmissing-declarations
-Wmissing-include-dirs -Wold-style-cast -Woverloaded-virtual -Wredundant-decls
-Wshadow -Wsign-conversion -Wsign-promo -Wstrict-overflow=5 -Wswitch-default
-Wundef -Wabi -Winline -Wzero-as-null-pointer-constant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment