From 20487974f950ac35b0512f07af2bc085886d6ea4 Mon Sep 17 00:00:00 2001
From: Linda Lapinlampi <linda@lindalap.fi>
Date: Sun, 7 Jun 2020 18:28:45 +0000
Subject: [PATCH 1/1] Scanner::scriptMessage: Add missing <cstdarg> header

Scanner::scriptMessage uses variadic functions (va_*), but their header
(<cstdarg>) was not included. This shouldn't have compiled successfully,
but it ended up compiling with CMake anyway, perhaps because
src/core/plugins/engineplugin.cpp also included <cstdarg> or because of
C library shenigans.

Fixes: #3820
---
 src/core/scanner.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/core/scanner.cpp b/src/core/scanner.cpp
index 7b158007..b0f59355 100644
--- a/src/core/scanner.cpp
+++ b/src/core/scanner.cpp
@@ -22,6 +22,7 @@
 //------------------------------------------------------------------------------
 
 #include <cmath>
+#include <cstdarg>
 #include <cstdio>
 #include <cstdlib>
 
-- 
2.27.0

