From 52985da13b2da02955d16d64a8b14e52b61df493 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 16 Apr 2017 12:17:42 +0200 Subject: [PATCH] Misra: Exception for rule 11.3 --- addons/misra.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/misra.py b/addons/misra.py index a422b8f37..a92eefd66 100644 --- a/addons/misra.py +++ b/addons/misra.py @@ -255,7 +255,7 @@ def misra_11_3(data): vt2 = token.astOperand1.valueType if not vt1 or not vt2: continue - if vt1.pointer==vt2.pointer and vt1.pointer>0 and vt1.type != vt2.type and vt1.isIntegral() and vt2.isIntegral(): + if vt1.pointer==vt2.pointer and vt1.pointer>0 and vt1.type != vt2.type and vt1.isIntegral() and vt2.isIntegral() and vt1.type != 'char': reportError(token, 11, 3) def misra_11_4(data):