-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debugger plugin: potential cppcheck false positive: uninitvar #1014
Comments
For the ifdef IIUC cppcheck checks all possible paths through nested
would have the whole file checked twice, once with code 1 and once with code 2 included, but when ifdefs are nested the number of combinations can explode and the check time blow out (one project had their CI run for weeks trying to complete it) so the number of combinations is limited by default. Maybe best to skip cppcheck on debugger until after 1.37 rather than making big changes to it this close to release. Extra points for running |
Is the problem really the ifdefs, or the |
I was just going on the title of the issue, I'm sure @eht16 couldn't be wrong. :) And agree the variable is a false positive, the |
Also most of the ifdefs are |
Oops, even in the log I pasted here I completely overlooked the real error message and just concentrated on the (probably) harmless warning. My random excuse generator says: it was late. |
Maybe restructure the widgets loop as a |
This fixes a cppcheck 2.2+ confusion about uninitialized widgets array and also makes the code a bit more readable. Closes geany#1014.
This fixes a cppcheck 2.2+ confusion about uninitialized widgets array and also makes the code a bit more readable. Closes geany#1014.
Tried but didn't help and would be even worse as you first need to know the array size. |
This fixes a cppcheck 2.2+ confusion about uninitialized widgets array and also makes the code a bit more readable. Closes geany#1014.
This fixes a cppcheck 2.2+ confusion about uninitialized widgets array and also makes the code a bit more readable. Closes geany#1014.
This fixes a cppcheck 2.2+ confusion about uninitialized widgets array and also makes the code a bit more readable. Closes geany#1014.
This fixes a cppcheck 2.2+ confusion about uninitialized widgets array and also makes the code a bit more readable. Closes #1014.
This fixes a cppcheck 2.2+ confusion about uninitialized widgets array and also makes the code a bit more readable. Closes geany#1014.
cppcheck 2.2 complains about many
ifdef
s in the Debugger plugin:When we remove GTK2 code, this might resolve it.
What should we do until then?
--force
?This breaks the nightly builds for Debian Sid: https://www.geany.org/download/nightly-builds/.
The text was updated successfully, but these errors were encountered: