From: Otto Moerbeek Date: Mon, 5 Oct 2020 14:55:41 +0000 (+0200) Subject: Missing include guards as noted by CodeQL X-Git-Tag: auth-4.4.0-alpha2~47^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f2c11a8b13d3435ae37e03e3a4418843345b3558;p=thirdparty%2Fpdns.git Missing include guards as noted by CodeQL --- diff --git a/pdns/Makefile.am b/pdns/Makefile.am index 0377047bb6..4cd2efa910 100644 --- a/pdns/Makefile.am +++ b/pdns/Makefile.am @@ -1542,7 +1542,7 @@ dnslabeltext.cc: dnslabeltext.rl $(AM_V_GEN)$(RAGEL) $< -o dnslabeltext.cc bind-dnssec.schema.sqlite3.sql.h: bind-dnssec.schema.sqlite3.sql - ( echo 'static char sqlCreate[] __attribute__((unused))=' ; sed 's/$$/"/g' $< | sed 's/^/"/g' ; echo ';' ) > $@ + ( echo '#pragma once'; echo 'static char sqlCreate[] __attribute__((unused))=' ; sed 's/$$/"/g' $< | sed 's/^/"/g' ; echo ';' ) > $@ # for bindparser.h/hh .hh.h: diff --git a/pdns/ixfrutils.hh b/pdns/ixfrutils.hh index e3c5bfb189..d42ee124cb 100644 --- a/pdns/ixfrutils.hh +++ b/pdns/ixfrutils.hh @@ -19,6 +19,8 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#pragma once + #include #include #include "dnsparser.hh"