From 629ed8e091a2c49a1357a9601b469a37a8ff62cd Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Wed, 23 Nov 2022 14:58:20 +0100 Subject: [PATCH] Set #pragma once for build.h The header is included all over the place and hence also multiple times in the same translation unit which triggers -Wredundant-decls, beside being pointless, so we just tell the pre-processor with a slightly more modern form of a header guard that once is enough. As a bonus, this commit keeps the 'DO NOT EDIT' remark as intended. --- support/configure.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/support/configure.inc b/support/configure.inc index 821102fbb..905685cb5 100755 --- a/support/configure.inc +++ b/support/configure.inc @@ -527,10 +527,11 @@ EOF CONFIG_H="${BUILDDIR}/build.h" cat > "${CONFIG_H}" < ${CONFIG_H} <> ${CONFIG_H} <