Fixed #10528 (FP: misra-c2012-8.4)

This commit is contained in:
Daniel Marjamäki 2021-12-22 18:55:28 +01:00
parent 5a95ece15e
commit 5491670792
2 changed files with 3 additions and 1 deletions

View File

@ -1985,7 +1985,7 @@ class MisraChecker:
continue
if not is_source_file(func.token.file):
continue
if func.token.file != func.tokenDef.file:
if func.token != func.tokenDef:
continue
if func.tokenDef.str == 'main':
continue

View File

@ -391,6 +391,8 @@ static int misra_8_2_q
(); // 8.2
void misra_8_4_foo(void) {} // 8.4
extern void misra_8_4_func(void);
void misra_8_4_func(void) {}
static void misra_8_4_bar(void) {} // Declared in header
extern int16_t misra_8_4_count; // no-warning
int16_t misra_8_4_count = 0; // Compliant