Gcc: Difference between revisions

From miki
Jump to navigation Jump to search
(Created page with "== Tips == === Enable more warnings === From [https://kristerw.blogspot.ch/2017/09/useful-gcc-warning-options-not-enabled.html]: * <code>-Wduplicated-cond</code> * <code>-Wdu...")
 
m (Mip moved page GCC to Gcc)

Revision as of 09:52, 28 August 2019

Tips

Enable more warnings

From [1]:

  • -Wduplicated-cond
  • -Wduplicated-branches
  • -Wlogical-op
  • -Wrestrict
  • -Wnull-dereference
  • -Wold-style-cast
  • -Wuseless-cast
  • -Wjump-misses-init
  • -Wdouble-promotion
  • -Wshadow
  • -Wformat=2