From: Andre Noll Date: Sun, 25 Apr 2021 22:57:12 +0000 (+0200) Subject: build: Error out on implicit function declarations. X-Git-Tag: v1.0.4~5^2 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=45901057b4103eeb745e080521678c0e43e0eca1;p=lopsub.git build: Error out on implicit function declarations. Replacing lopsub.h by an empty file builds a buggy lopsubgen-stage1 executable which segfaults due to a format string mismatch caused by the implicit declaration of lls_version(). In this package all functions are supposed to be declared, so let's fail the build if any undeclared functions are found. Tested-by: Alex Gietz --- diff --git a/Makefile b/Makefile index f7e19fb..548c96f 100644 --- a/Makefile +++ b/Makefile @@ -97,6 +97,7 @@ lopsubex_objs := lopsubex.o lopsubex.lsg.o $(liblopsub_objs) LLS_CFLAGS := -g -fPIC STRICT_CFLAGS := -Wall +STRICT_CFLAGS += -Werror-implicit-function-declaration $(lsg_objs) $(liblopsub_objs) $(lopsubex_objs): %.o: %.c lopsubgen.o config_file.o: