From 7b6d7b9335f5df1f8bad9ab357055f7a2bb4fd96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 10 Apr 2019 21:06:40 +0200 Subject: [PATCH] threadsafety.py: allow execution with --addon --- addons/threadsafety.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/threadsafety.py b/addons/threadsafety.py index b72c077f4..ccf6503a4 100755 --- a/addons/threadsafety.py +++ b/addons/threadsafety.py @@ -25,6 +25,8 @@ def checkstatic(data): reportError(var.typeStartToken, 'warning', 'Local static ' + type + ': ' + var.nameToken.str, 'threadsafety') for arg in sys.argv[1:]: + if arg.startswith('-'): + continue print('Checking ' + arg + '...') data = cppcheckdata.parsedump(arg) for cfg in data.configurations: