Browse Source

more fixes

Costa Tsaousis (ktsaou) 7 years ago
parent
commit
776f82c2af
3 changed files with 5 additions and 1 deletions
  1. 2 1
      coverity-scan.sh
  2. 2 0
      cppcheck.sh
  3. 1 0
      netdata.cppcheck

+ 2 - 1
coverity-scan.sh

@@ -1,4 +1,5 @@
-#/bin/bash
+#!/usr/bin/env bash
+#!/usr/bin/env bash
 
 cpus=$(grep ^processor </proc/cpuinfo| wc -l)
 [ -z "${cpus}" ] && cpus=1

+ 2 - 0
cppcheck.sh

@@ -28,6 +28,8 @@ shift
 	-I .. \
 	--force \
 	--enable=warning,performance,portability,information \
+	--library=gnu \
+	--library=posix \
 	--suppress="unusedFunction:*" \
 	--suppress="nullPointerRedundantCheck:*" \
 	"${file}" "${@}"

+ 1 - 0
netdata.cppcheck

@@ -6,6 +6,7 @@
         <dir name=".."/>
     </includedir>
     <libraries>
+        <library>cppcheck-lib</library>
         <library>gnu</library>
         <library>posix</library>
     </libraries>