It seems newer cppcheck versions are too sensible to uninitialized loop variables when the loop is created by a macro. This might be a bug in cppcheck or it just cannot check the loop properly. By initializing the affected variables explicitly, cppcheck is happy while the unnecessary initialization should not have any impacts.
The nightly builds for Debian Unstable are currently broken because of this. You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany-plugins/pull/590
-- Commit Summary --
* Initialize loop variables to make cppcheck happy
-- File Changes --
M addons/src/ao_tasks.c (2) M autoclose/src/autoclose.c (4) M commander/src/commander-plugin.c (2) M geanyextrasel/src/extrasel.c (2) M geanygendoc/src/ggd-tag-utils.c (20) M geanylatex/src/geanylatex.c (2) M geanylua/glspi_doc.c (4) M git-changebar/src/gcb-plugin.c (4) M keyrecord/src/keyrecord.c (2) M overview/overview/overviewui.c (2) M projectorganizer/src/prjorg-main.c (2) M projectorganizer/src/prjorg-menu.c (6) M projectorganizer/src/prjorg-project.c (16) M projectorganizer/src/prjorg-sidebar.c (8) M projectorganizer/src/prjorg-utils.c (2) M scope/src/scope.c (6) M scope/src/utils.c (2) M spellcheck/src/gui.c (2)
-- Patch Links --
https://github.com/geany/geany-plugins/pull/590.patch https://github.com/geany/geany-plugins/pull/590.diff
frlan approved this pull request.
Merged #590.
github-comments@lists.geany.org