Skip to content

Conversation

@clemdiep
Copy link
Contributor

@clemdiep clemdiep commented Feb 9, 2026

That PR add the __attribute__(fromat(printf/scanf, ...)) to all printf/scanf like functions.
This allows the compiler to print warning when the attributes list doesn't match the format string (like it would be done with libc printf).

closes #240

@clemdiep clemdiep linked an issue Feb 9, 2026 that may be closed by this pull request
@daniel-rossier
Copy link
Contributor

That's good idea :-)

@clemdiep clemdiep merged commit a325df7 into main Feb 11, 2026
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.

compiler doesn't warn on printk format/arguments mismatch

3 participants