From c83f25343fbd54a38f1a5c34e537ea6122fef825 Mon Sep 17 00:00:00 2001 From: Carsten Hartenfels Date: Mon, 18 Nov 2019 05:06:46 -0500 Subject: [PATCH] Error out on invalid empty prototypes This way, a function prototype like `glms_mat3_identity()` will not compile, instead you have to change it to the proper `glms_mat3_identity(void)`. --- Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index fc76e3f..f6b3073 100644 --- a/Makefile.am +++ b/Makefile.am @@ -12,7 +12,8 @@ AM_CFLAGS = -Wall \ -O3 \ -Wstrict-aliasing=2 \ -fstrict-aliasing \ - -pedantic + -pedantic \ + -Werror=strict-prototypes lib_LTLIBRARIES = libcglm.la libcglm_la_LDFLAGS = -no-undefined -version-info 0:1:0