diff --git a/src/maketools/cppcheck b/src/maketools/cppcheck
index b882ca6ded1784ca196fa2350ff031a1b192741b..1c135567396c1dc44eb214f2e99de83d99804150 100755
--- a/src/maketools/cppcheck
+++ b/src/maketools/cppcheck
@@ -26,7 +26,7 @@ cppcheck --std=c++03 --std=posix -j 4 --platform=unix64 \
 ## perhaps we could keep some of them to make to code cleaner at some point
 ##
 ## (the "true" command is necessary so that the script does not fail if some string is not found)
-grep -v "(style)" cppcheck.log | grep -v "\[molfile/" > cppcheck.fatal || true
+grep -v "(style)" cppcheck.log | grep -v "\[molfile/" | grep -v "\[lapack/" | grep -v "\[blas/"> cppcheck.fatal || true
 count=$(cat cppcheck.fatal | wc -l)
 echo 
 echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"