summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-10-27 13:19:52 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-10-27 16:28:10 +0900
commit5ff47e0c8a97940a6f77f961ab43ebea87256dfa (patch)
tree13182886e50f9f3083dc6ac14b79db1f3ec0ab35 /configure.ac
parent219f54152aaad31b40e19eef4f01b88730734e62 (diff)
Check old-style definitions
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5034
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 610143fe34..490fe5d94a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -636,6 +636,7 @@ AS_CASE(["$GCC:${warnflags+set}:${extra_warnflags:+set}:"],
-Werror=pointer-arith \
-Werror=shorten-64-to-32 \
-Werror=write-strings \
+ -Werror=old-style-definition \
-Wimplicit-fallthrough=0 \
-Wmissing-noreturn \
-Wno-cast-function-type \