misra.py - Rule 11.8 fixed in function arguments checks (#1288)
This commit is contained in:
parent
4d99300339
commit
8925a0fd81
|
@ -1001,7 +1001,7 @@ def misra_11_8(data):
|
|||
continue
|
||||
if argtok.valueType.pointer == 0:
|
||||
continue
|
||||
const1 = argvar.isConst
|
||||
const1 = argvar.constness
|
||||
const2 = arguments[argnr - 1].valueType.constness
|
||||
if (const1 % 2) < (const2 % 2):
|
||||
reportError(token, 11, 8)
|
||||
|
|
|
@ -211,6 +211,7 @@ void misra_11_7(int *p, float f) {
|
|||
}
|
||||
|
||||
char * misra_11_8(const char *str) {
|
||||
misra_11_8(str); // no-warning
|
||||
return (char *)str; // 11.8
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue