gcc_warnings.cmake 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. set(WARNINGS
  2. -Wno-attributes
  3. -Wall
  4. -Walloc-zero
  5. -Walloca
  6. -Wanalyzer-too-complex
  7. -Warith-conversion
  8. -Warray-bounds=2
  9. -Warray-parameter
  10. -Wattribute-alias=2
  11. -Wbad-function-cast
  12. -Wbidi-chars=any
  13. -Wcast-align=strict
  14. -Wcast-qual
  15. -Wconversion
  16. -Wdate-time
  17. -Wdisabled-optimization
  18. -Wdouble-promotion
  19. -Wduplicated-branches
  20. -Wduplicated-cond
  21. -Wenum-compare
  22. -Wenum-conversion
  23. -Werror
  24. -Wextra
  25. -Wfloat-equal
  26. -Wformat-overflow=2
  27. -Wformat-signedness
  28. -Wformat-truncation=2
  29. -Wformat=2
  30. -Wframe-larger-than=8388608
  31. -Wimplicit-fallthrough=5
  32. -Winfinite-recursion
  33. -Winit-self
  34. -Winvalid-pch
  35. -Wjump-misses-init
  36. -Wlarger-than=1073741824
  37. -Wlogical-op
  38. -Wmissing-braces
  39. -Wmissing-declarations
  40. -Wmissing-include-dirs
  41. -Wmissing-prototypes
  42. -Wmultichar
  43. -Wnarrowing
  44. -Wnested-externs
  45. -Wnormalized=nfkc
  46. -Wnull-dereference
  47. -Wold-style-definition
  48. -Woverlength-strings
  49. -Wredundant-decls
  50. -Wshadow
  51. -Wshift-overflow=2
  52. -Wsign-conversion
  53. -Wstack-protector
  54. -Wstack-usage=8388608
  55. -Wstrict-overflow=2
  56. -Wstrict-prototypes
  57. -Wstringop-overflow=4
  58. -Wtrampolines
  59. -Wtrivial-auto-var-init
  60. -Wundef
  61. -Wunreachable-code
  62. -Wunused-const-variable=2
  63. -Wuse-after-free=3
  64. -Wvla
  65. -Wwrite-strings
  66. -pedantic
  67. -pedantic-errors
  68. )