From 0d7f06b6cdfef872ef9afbc0b2f628ae086cd077 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Mon, 1 Feb 2021 12:14:28 -0300 Subject: [PATCH] environment/configure/hardening: add -Werror=implicit. Warnings for implicit function definitions should be errors, since they can lead to issues down the line when the implicit type rules get things wrong, especially with variadic functions. --- common/environment/configure/hardening.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/environment/configure/hardening.sh b/common/environment/configure/hardening.sh index 9e02364f2a1..5e07eccf030 100644 --- a/common/environment/configure/hardening.sh +++ b/common/environment/configure/hardening.sh @@ -28,3 +28,5 @@ else FFLAGS="-fno-PIE ${FFLAGS}" LDFLAGS="-no-pie ${LDFLAGS}" fi + +CFLAGS="${CFLAGS} -Werror=implicit"