Gcc

From miki
Revision as of 07:13, 5 December 2017 by Mip (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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