[gjs: 5/10] maint: Define additional macro for cppcheck
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 5/10] maint: Define additional macro for cppcheck
- Date: Mon, 25 Jul 2022 03:58:43 +0000 (UTC)
commit f517c4304364c7a371978086ee1ea4092fa81b4b
Author: Philip Chimento <philip chimento gmail com>
Date: Sat Jul 23 08:13:10 2022 -0700
maint: Define additional macro for cppcheck
Older cppcheck just skips over this, but newer cppcheck will warn that it
can't check it.
tools/cppcheck.cfg | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/tools/cppcheck.cfg b/tools/cppcheck.cfg
index beb1ca398..7de4f6e10 100644
--- a/tools/cppcheck.cfg
+++ b/tools/cppcheck.cfg
@@ -4,6 +4,7 @@
<def>
<define name="GJS_DEFINE_PRIV_FROM_JS" value=""/>
<define name="GJS_DEFINE_PROTO_ABSTRACT_WITH_PARENT" value=""/>
+ <define name="FOR_EACH_ATOM" value=""/>
<!-- These are available in cppcheck 2.0 -->
<define name="g_assert_true(expr)" value="g_assert(expr)"/>
<define name="g_assert_cmpstr(s1, cmp, s2)" value="g_assert_true(g_strcmp0 ((s1), (s2)) cmp 0)"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]