Skip to content
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

Fixes #79: Integrate @joshklod's format attribute addition #10

Merged
merged 2 commits into from
Jun 30, 2021

Conversation

eyalroz
Copy link
Owner

@eyalroz eyalroz commented Jun 30, 2021

It seems Josh Klodnicki has fixed up the format string warnings following from his introduction of the __attribute__(format)'s, so I can now safely (I hope) integrate his work.

This will fix issue #79.

Enables compile-time error-checking of format strings and argument types
w/ `-Wformat` (or `-Wall`)
- Correct type of `%h` arguments
- Cast `%[jz]` arguments to the appropriate type instead of testing
  `sizeof(<type>)` at runtime
- Suppress warnings from intentionally malformed format strings and
  `%b`, which is not recognized by GCC.
@eyalroz eyalroz self-assigned this Jun 30, 2021
@eyalroz eyalroz changed the title Fixes #80: Integrate @joshklod's format attribute addition Fixes #79: Integrate @joshklod's format attribute addition Jun 30, 2021
@eyalroz eyalroz merged commit 145f64a into eyalroz:master Jun 30, 2021
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.

None yet

2 participants