8215400: Warn on usage of trampolines with gcc
authorerikj
Mon, 07 Jan 2019 10:00:41 +0100
changeset 53174 8970b75f0d37
parent 53173 a0eb3da69586
child 53175 ea921dca7f33
8215400: Warn on usage of trampolines with gcc Reviewed-by: tbell, kbarrett
make/autoconf/flags-cflags.m4
--- a/make/autoconf/flags-cflags.m4	Fri Jan 04 15:17:40 2019 -0800
+++ b/make/autoconf/flags-cflags.m4	Mon Jan 07 10:00:41 2019 +0100
@@ -183,7 +183,8 @@
 
       # Additional warnings that are not activated by -Wall and -Wextra
       WARNINGS_ENABLE_ADDITIONAL="-Wpointer-arith -Wsign-compare \
-          -Wunused-function -Wundef -Wunused-value -Wreturn-type"
+          -Wunused-function -Wundef -Wunused-value -Wreturn-type \
+          -Wtrampolines"
       WARNINGS_ENABLE_ADDITIONAL_CXX="-Woverloaded-virtual -Wreorder"
       WARNINGS_ENABLE_ALL_CFLAGS="-Wall -Wextra -Wformat=2 $WARNINGS_ENABLE_ADDITIONAL"
       WARNINGS_ENABLE_ALL_CXXFLAGS="$WARNINGS_ENABLE_ALL_CFLAGS $WARNINGS_ENABLE_ADDITIONAL_CXX"