]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Missing include guards as noted by CodeQL 9587/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 5 Oct 2020 14:55:41 +0000 (16:55 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 5 Oct 2020 14:55:41 +0000 (16:55 +0200)
pdns/Makefile.am
pdns/ixfrutils.hh

index 0377047bb6839b90b003e95f6eaae1a161f1e068..4cd2efa910d0162ef9c98212e4f3cec47f22c7e6 100644 (file)
@@ -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:
index e3c5bfb1898156eec986433e9a8f10484a999b11..d42ee124cb546aef35c956188e99a94a8c43a451 100644 (file)
@@ -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 <sys/types.h>
 #include <boost/multi_index_container.hpp>
 #include "dnsparser.hh"