Skip to content

Commit

Permalink
Scope: Define GETTEXT_PACKAGE macro for recent cppcheck versions
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
eht16 committed Aug 1, 2023
1 parent a0244a2 commit f801b39
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scope/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f801b39

Please sign in to comment.