1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-22 21:23:07 +03:00
Earle F. Philhower, III 46190b61f1
Error even w/warnings disabled for no-return fcns (#8495)
* Error even w/warnings disabled for no-return fcns

A function whose prototype says it will return a value but doesn't
is undefined behaviour in C++.  GCC 10 will generate code that crashes
in this case.

In warnings==None mode, insterad of turning off all warnings with
`-w`, explicitly list all G++ possible warnings except for the
`no-return` warning which catches this programming error.

* Use different lists for GCC vs G++

G++ and GCC have different warning options, so use different lists.

* Make separate file for each level, add readme

The readme now includes the exact commands required to regenerate the
none-XXX files, no manual editing needed.

* Address review comments, only adjusts G++/None
2022-03-04 02:10:57 +03:00

53 lines
1.1 KiB
Plaintext

-Wno-address-of-packed-member
-Wno-aggressive-loop-optimizations
-Wno-analyzer-malloc-leak
-Wno-analyzer-null-argument
-Wno-analyzer-null-dereference
-Wno-analyzer-possible-null-argument
-Wno-analyzer-possible-null-dereference
-Wno-analyzer-stale-setjmp-buffer
-Wno-analyzer-tainted-array-index
-Wno-analyzer-unsafe-call-within-signal-handler
-Wno-attribute-warning
-Wno-attributes
-Wno-builtin-declaration-mismatch
-Wno-builtin-macro-redefined
-Wno-cannot-profile
-Wno-coverage-mismatch
-Wno-cpp
-Wno-deprecated
-Wno-deprecated-declarations
-Wno-div-by-zero
-Wno-endif-labels
-Wno-enum-compare
-Wno-hsa
-Wno-if-not-aligned
-Wno-ignored-attributes
-Wno-int-to-pointer-cast
-Wno-invalid-memory-model
-Wno-long-long
-Wno-lto-type-mismatch
-Wno-main
-Wno-missing-profile
-Wno-narrowing
-Wno-odr
-Wno-overflow
-Wno-packed-bitfield-compat
-Wno-pointer-compare
-Wno-pragmas
-Wno-prio-ctor-dtor
-Wno-psabi
-Wno-return-local-addr
-Wno-shift-count-negative
-Wno-shift-count-overflow
-Wno-shift-negative-value
-Wno-sizeof-array-argument
-Wno-switch-bool
-Wno-switch-outside-range
-Wno-switch-unreachable
-Wno-sync-nand
-Wno-trigraphs
-Wno-unused-result
-Wno-varargs
-Wno-vla