From 9481992bb90431a68c8a8e85741a8d6b3f05aee6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Fri, 31 May 2019 07:51:23 +0300 Subject: [PATCH] Fix dbfwfilter release mode build failure GCC 9 complained about null format strings even though the argument given was never null. --- server/modules/filter/dbfwfilter/dbfwfilter.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/filter/dbfwfilter/dbfwfilter.hh b/server/modules/filter/dbfwfilter/dbfwfilter.hh index 6882751f0..b9050009a 100644 --- a/server/modules/filter/dbfwfilter/dbfwfilter.hh +++ b/server/modules/filter/dbfwfilter/dbfwfilter.hh @@ -305,7 +305,7 @@ class Rule; typedef std::shared_ptr SRule; /** Helper function for strdup'ing in printf style */ -char* create_error(const char* format, ...); +char* create_error(const char* format, ...) __attribute__ ((nonnull)); /** * Check if a rule matches