This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I see several bugs. 1. inspector show warning twice if function declaration and definition in the same file. 2. inspector does not find warnings in the compound statements. 3. inspector does not found warnings in the expression statements if call is second in list. Code example: #include <stdio.h> #include <string.h> #include <stdlib.h> void foo(int argc, char**argv); int main(int argc, char**argv) { foo(argc, argv); return 0; } void foo(int argc, char**argv) { printf("Arguments (%ld):\n", argc); for (int i = 0; i < argc; i++,printf("%ld: %s\n", i, argv[i])); for (int i = 0; i < argc; i++) { printf("%ld: %s\n", i, argv[i]); } printf("%ld: %s\n", 0, argv[0]); }
fixed, change set c35c8a72a4d5 (enum)
Integrated into 'main-silver', will be available in build *201601180002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/e58a5817372c User: Danila Sergeyev <danilasergeyev@netbeans.org> Log: fix bug #257545 Format string inspector (and security inspectors) does not work right (transplanted from c35c8a72a4d510197295657aa70a71dd7236e75d)
Fixes of this bug: http://hg.netbeans.org/releases/rev/c35c8a72a4d5
Verified in NetBeans 8.1 patch1