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

warning: format not a string literal and no format arguments [-Wformat-security] #6

Closed
JiapengLi opened this issue Sep 3, 2016 · 0 comments

Comments

@JiapengLi
Copy link
Owner

lorawan-parser 370f14c brings a warning "format not a string literal and no format arguments [-Wformat-security]" to log_puts

For now I have no idea how fix it in a clean way.

I refered serveral articals:
http://stackoverflow.com/questions/9707569/c-array-warning-format-not-a-string-literal

All answers are similar, need replace strfmt to string, but this way will not work for log_puts, log_puts needs printf to receive dynamic parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant