From 4cd7f96accbea11074b0022393a1049e4b863338 Mon Sep 17 00:00:00 2001 From: Ruben Ayrapetyan Date: Thu, 29 Jan 2015 14:26:17 +0300 Subject: [PATCH] Suppressing 'member variable is not assigned in operator =' cppcheck warning, because of false positives. --- tools/cppcheck.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/cppcheck.sh b/tools/cppcheck.sh index 61fbdb6e4..b79932876 100755 --- a/tools/cppcheck.sh +++ b/tools/cppcheck.sh @@ -1,4 +1,4 @@ -# Copyright 2014 Samsung Electronics Co., Ltd. +# Copyright 2014-2015 Samsung Electronics Co., Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -14,12 +14,14 @@ #!/bin/bash -if [ ! -x ./third-party/tools/cppcheck/$(uname -m)/cppcheck ] +BASE=./third-party/tools/cppcheck + +if [ ! -x $BASE/$(uname -m)/cppcheck ] then exit 1; fi -./third-party/tools/cppcheck/$(uname -m)/cppcheck "$@" +$BASE/$(uname -m)/cppcheck "$@" "--exitcode-suppressions=$BASE/cfg/suppressions-list" status_code=$? exit $status_code