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.
This commit is contained in:
Benoit Daloze 2021-04-29 14:14:52 +02:00
Родитель 113ddf4d1d
Коммит 8b32de2ec9
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -627,6 +627,7 @@ AS_CASE(["$GCC:${warnflags+set}:${extra_warnflags:+set}:"],
-Werror=pointer-arith \ -Werror=pointer-arith \
-Werror=shorten-64-to-32 \ -Werror=shorten-64-to-32 \
-Werror=write-strings \ -Werror=write-strings \
-Werror=undef \
-Wimplicit-fallthrough=0 \ -Wimplicit-fallthrough=0 \
-Wmissing-noreturn \ -Wmissing-noreturn \
-Wno-cast-function-type \ -Wno-cast-function-type \