CWARN.IMPLICITINTAnachronistic implicit intThe CWARN.IMPLICITINT checker finds instances of the anachronistic 'implicit int' rule, in which int is assumed when no type is specified for an entity. This rule is applicable to C only. Vulnerable code example1 #include <stdio.h> 2 foo(char c) 3 { 4 char x = c + 1; 5 printf("Foo says: %c\n", c); 6 return 1; 7 } Klocwork flags line 2 to indicate an implicit int. Related checkers |