Skip to content

Fix cppcheck version definition and retry count format - #86

Merged
tillkamppeter merged 1 commit into
OpenPrinting:masterfrom
RonitMehta08:fix/cppcheck-version-string
Nov 21, 2026
Merged

tillkamppeter merged 1 commit into
OpenPrinting:masterfrom
RonitMehta08:fix/cppcheck-version-string

Conversation

@RonitMehta08

@RonitMehta08 RonitMehta08 commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

The cppcheck job passes VERSION as 2.1.1 instead of a string literal, so the version banner in cups-browsed.c produces a syntax error. Preserve the quotes in the macro definition passed to cppcheck.

Once parsing succeeds, cppcheck also reports that the queue retry count is unsigned but printed with %d. Use %u for that diagnostic.

Addresses the failure in run 44391850941, attempt 2.

Validation: reproduced the original VERSION syntax error with cppcheck 2.7, then ran the workflow command with both changes and got exit 0. The new GitHub run with cppcheck 2.19.0 also gets past the banner. It now reports allocation/ownership diagnostics in the existing code, so the job still fails; those require separate investigation. The build and CodeQL checks verify the source change.

Signed-off-by: RonitMehta08 <ronitdmehta@gmail.com>
@tillkamppeter
tillkamppeter merged commit de6571e into OpenPrinting:master Nov 21, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants