From 8b34e8637d238161440e743e8937db09304c77b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Kijewski?= Date: Wed, 7 May 2014 13:02:46 +0200 Subject: [PATCH] make: fast out on old-style function definitions --- Makefile.cflags | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile.cflags b/Makefile.cflags index 220215f413..d1478e5dc0 100644 --- a/Makefile.cflags +++ b/Makefile.cflags @@ -21,3 +21,11 @@ ifeq ($(shell LANG=C $(CC) -fno-delete-null-pointer-checks -E - 2>&1 1>/dev/null CFLAGS += -fno-delete-null-pointer-checks endif endif + +# Fast-out on old style function definitions. +# They cause unreadable error compiler errors on missing semicolons. +# Worse yet they hide errors by accepting wildcard argument types. +ifeq ($(shell $(CC) -Wstrict-prototypes -Werror=strict-prototypes -Wold-style-definition -Werror=old-style-definition -E - 2>/dev/null >/dev/null