Fixed #10528 (FP: misra-c2012-8.4)
This commit is contained in:
parent
5a95ece15e
commit
5491670792
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue