From c0e86fc435bef13ef7535b509c1fe417c8b91bff Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Tue, 18 Feb 2020 10:37:54 +0100 Subject: [PATCH] dnsdist: Add a comment about the lack of guard in dnsdist-lua-ffi-interface.h Reported by LGTM. --- pdns/dnsdistdist/dnsdist-lua-ffi-interface.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pdns/dnsdistdist/dnsdist-lua-ffi-interface.h b/pdns/dnsdistdist/dnsdist-lua-ffi-interface.h index f1ae6cacdd..d56b73510a 100644 --- a/pdns/dnsdistdist/dnsdist-lua-ffi-interface.h +++ b/pdns/dnsdistdist/dnsdist-lua-ffi-interface.h @@ -19,6 +19,10 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ + +/* we don't use a guard (C++ pragma once or even #ifndef because this file (the .inc version) + is passed to the Lua FFI wrapper which doesn't support it */ + typedef struct dnsdist_ffi_dnsquestion_t dnsdist_ffi_dnsquestion_t; typedef struct dnsdist_ffi_servers_list_t dnsdist_ffi_servers_list_t; typedef struct dnsdist_ffi_server_t dnsdist_ffi_server_t; -- 2.47.2