From: David Kalnischkies Date: Wed, 23 Nov 2022 13:58:20 +0000 (+0100) Subject: Set #pragma once for build.h X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=629ed8e091a2c49a1357a9601b469a37a8ff62cd;p=thirdparty%2Ftvheadend.git 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. --- 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} <