From f801b392a55bbc0f30f8ce243493d491476dbad5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Tr=C3=B6ger?= Date: Tue, 1 Aug 2023 23:25:47 +0200 Subject: [PATCH] Scope: Define GETTEXT_PACKAGE macro for recent cppcheck versions Without this, cppcheck will throw errors like store/scptreestore.c:1990:37: warning: syntax error [syntaxError] g_param_spec_boolean("sublevels", P_("Sublevels"), This is probably caused by the P_() macro if GETTEXT_PACKAGE is not set. --- scope/src/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scope/src/Makefile.am b/scope/src/Makefile.am index b3398bc38..c161b8ef7 100644 --- a/scope/src/Makefile.am +++ b/scope/src/Makefile.am @@ -60,6 +60,8 @@ scope_la_CFLAGS = $(AM_CFLAGS) $(VTE_CFLAGS) \ -Wno-shadow \ -I$(top_srcdir)/utils/src +AM_CPPCHECKFLAGS = -DGETTEXT_PACKAGE="geany-plugins" + include $(top_srcdir)/build/cppcheck.mk if UNITTESTS