Skip to content

T7156: suppress sprintf format warnings at the source level#13

Merged
dmbaturin merged 1 commit intovyos:currentfrom
dmbaturin:format-error-fix
Feb 11, 2025
Merged

T7156: suppress sprintf format warnings at the source level#13
dmbaturin merged 1 commit intovyos:currentfrom
dmbaturin:format-error-fix

Conversation

@dmbaturin
Copy link
Member

...rather than with CFLAGS, so that it applies only to locations where it was proven safe and is protected against CFLAGS overrides.

This fixes the Debian package build.

Change Summary

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Other (please describe):

Related Task(s)

Related PR(s)

Proposed changes

Use GCC diagnostic pragmas to supress a warning for selected lines.

How to test

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

rather than with CFLAGS, so that it applies only to locations
where it was proven safe and is protected against CFLAGS overrides
@sever-sever sever-sever self-requested a review February 11, 2025 15:35
@dmbaturin dmbaturin merged commit b5bc748 into vyos:current Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants