1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
From 0ad3ec084d918be503a8ce971af1b54887d7726f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= <cedric.bosdonnat@free.fr>
Date: Thu, 16 Jul 2015 16:23:06 +0200
Subject: [PATCH] Getting cppcheck-test to pass again
---
Makefile.am | 1 +
cppcheck-suppress | 3 +++
cppcheck-test.sh.in | 4 +++-
3 files changed, 7 insertions(+), 1 deletion(-)
create mode 100644 cppcheck-suppress
diff --git a/Makefile.am b/Makefile.am
index ebf1f3b..9263497 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -35,6 +35,7 @@ EXTRA_DIST = \
COPYING.LGPL \
doc/cmis-client.xml \
cppcheck-test.sh \
+ cppcheck-suppress \
qa/libcmis/data
if ENABLE_CPPCHECK
diff --git a/cppcheck-suppress b/cppcheck-suppress
new file mode 100644
index 0000000..9ef8482
--- /dev/null
+++ b/cppcheck-suppress
@@ -0,0 +1,3 @@
+publicAllocationError:qa/libcmis/test-decoder.cxx
+noExplicitConstructor
+noExplicitCopyMoveConstructor
diff --git a/cppcheck-test.sh.in b/cppcheck-test.sh.in
index 20a73f8..175e0f5 100755
--- a/cppcheck-test.sh.in
+++ b/cppcheck-test.sh.in
@@ -1,3 +1,5 @@
#!/bin/sh
-@CPPCHECK@ -q --enable=style,performance,portability,information --error-exitcode=1 @SRCDIR@
+@CPPCHECK@ -q --enable=style,performance,portability,information \
+ --suppressions-list=./cppcheck-suppress \
+ --error-exitcode=1 @SRCDIR@
exit $?
|