gcc_warnings.cmake 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. -Wswitch-enum
  59. -Wtrampolines
  60. -Wtrivial-auto-var-init
  61. -Wundef
  62. -Wunreachable-code
  63. -Wunused-const-variable=2
  64. -Wuse-after-free=3
  65. -Wvla
  66. -Wwrite-strings
  67. -pedantic
  68. -pedantic-errors
  69. )