From 45901057b4103eeb745e080521678c0e43e0eca1 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 26 Apr 2021 00:57:12 +0200 Subject: [PATCH] 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 --- Makefile | 1 + 1 file changed, 1 insertion(+) 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: -- 2.39.5