From cddc84baf48e63e618b3e03d2df39b6ac3470392 Mon Sep 17 00:00:00 2001
From: chrfranke <chrfranke@4ea69e1a-61f1-4043-bf83-b5c94c648137>
Date: Sun, 1 May 2022 16:42:53 +0000
Subject: [PATCH] cppcheck.sh: Suppress getpw*Called, getgr*Called, remove
 ftimeCalled. Add *_RELEASE_* defines to silence ConfigurationNotChecked.

git-svn-id: https://svn.code.sf.net/p/smartmontools/code/trunk@5378 4ea69e1a-61f1-4043-bf83-b5c94c648137
---
 smartmontools/ChangeLog   | 3 +++
 smartmontools/cppcheck.sh | 9 +++++++--
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/smartmontools/ChangeLog b/smartmontools/ChangeLog
index 28b6935c3..7ce1f9d3c 100644
--- a/smartmontools/ChangeLog
+++ b/smartmontools/ChangeLog
@@ -2,6 +2,9 @@ $Id$
 
 2022-05-01  Christian Franke  <franke@computer.org>
 
+	cppcheck.sh: Suppress getpw*Called, getgr*Called, remove ftimeCalled.
+	Add *_RELEASE_* defines to silence ConfigurationNotChecked.
+
 	configure.ac: Add URL to AC_INIT, remove PACKAGE_HOMEPAGE.
 	Require autoconf >= 2.64.
 	Replace PACKAGE_HOMEPAGE with PACKAGE_URL in all files.
diff --git a/smartmontools/cppcheck.sh b/smartmontools/cppcheck.sh
index c9c5419b3..3401f6968 100755
--- a/smartmontools/cppcheck.sh
+++ b/smartmontools/cppcheck.sh
@@ -4,7 +4,7 @@
 #
 # Home page of code is: https://www.smartmontools.org
 #
-# Copyright (C) 2019-21 Christian Franke
+# Copyright (C) 2019-22 Christian Franke
 #
 # SPDX-License-Identifier: GPL-2.0-or-later
 #
@@ -76,7 +76,10 @@ sup_list="
   #style
   asctime_rCalled:utility.cpp
   asctime_sCalled:utility.cpp
-  ftimeCalled
+  getgrgidCalled:popen_as_ugid.cpp
+  getgrnamCalled:popen_as_ugid.cpp
+  getpwnamCalled:popen_as_ugid.cpp
+  getpwuidCalled:popen_as_ugid.cpp
   readdirCalled
   strtokCalled
   unusedStructMember
@@ -105,6 +108,8 @@ defs="\
   -DHAVE_ATTR_PACKED
   -DHAVE_CONFIG_H
   -DSG_IO=1
+  -DSMARTMONTOOLS_RELEASE_DATE=\"2022-02-28\"
+  -DSMARTMONTOOLS_RELEASE_TIME=\"16:33:40\"
   -DSMARTMONTOOLS_SVN_REV=\"r1\"
   -DSMARTMONTOOLS_ATTRIBUTELOG=\"/file\"
   -DSMARTMONTOOLS_SAVESTATES=\"/file\"
-- 
GitLab