Skip to content

Conversation

@scott-snyder
Copy link

Fix compilation warnings seen with current gcc versions.

  • Local variable declaration shadowing previous declaration.
  • Avoid use of gcc compound-literal extension.
  • Unused function parameters.
  • Change macro to inline function; avoids integer comparison warnings.
  • Avoid variable-length array extension.
  • Fix length in strncpy call.
  • Fix some sprintf truncation/overflow warnings.
  • Spurious switch fallthrough.
  • Remove some unneeded semicolons

Also fix -Weffc++ warnings.

BEGINRELEASENOTES

  • Fix a number of compilation warnings.
    ENDRELEASENOTES

scott snyder added 2 commits January 9, 2025 22:24
  - Local variable declaration shadowing previous declaration.
  - Avoid use of gcc compound-literal extension.
  - Unused function parameters.
  - Change macro to inline function; avoids integer comparison warnings.
  - Avoid variable-length array extension.
  - Fix length in strncpy call.
  - Fix some sprintf truncation/overflow warnings.
  - Spurious switch fallthrough.
  - Remove some unneeded semicolons
@tmadlener
Copy link
Contributor

Apologies, I have completely missed this PR. I have done, effectively the same fixes in #18

@tmadlener tmadlener closed this Jun 3, 2025
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