diff options
author | Benoit Daloze <eregontp@gmail.com> | 2021-04-29 14:14:52 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2021-05-04 14:56:55 +0200 |
commit | 8b32de2ec9b72d4c9ede19b70ec9497718fb25a6 (patch) | |
tree | 7e22d64c286fba402153bf65e514d8ada9b64a94 | |
parent | 113ddf4d1d112ddd4611df654e6131ef73eeb77b (diff) |
Add -Werror=undef to default warnflags for core
* See [Feature #17752]
* For external extensions it's transformed to just warn and not error (-Wundef)
like other other -Werror in warnflags.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4428
-rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index fa62b5fa85..6605939eac 100644 --- a/configure.ac +++ b/configure.ac @@ -627,6 +627,7 @@ AS_CASE(["$GCC:${warnflags+set}:${extra_warnflags:+set}:"], -Werror=pointer-arith \ -Werror=shorten-64-to-32 \ -Werror=write-strings \ + -Werror=undef \ -Wimplicit-fallthrough=0 \ -Wmissing-noreturn \ -Wno-cast-function-type \ |