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

fix format warning (-Wformat-security) #96

Open
kpasko opened this issue Mar 27, 2017 · 0 comments
Open

fix format warning (-Wformat-security) #96

kpasko opened this issue Mar 27, 2017 · 0 comments

Comments

@kpasko
Copy link
Contributor

kpasko commented Mar 27, 2017

......./geode/geode/../geode/utility/format.h:76:24: warning: format
string is not a string literal (potentially insecure) [-Wformat-security]
return format_helper(format,format_sanitize(args)...);
^~~~~~
......./geode/geode/../geode/value/Prop.h:281:24: note: in
instantiation of function template specialization 'geode::format<>' requested here
throw ValueError(format("non-clampable prop does not have a step"));

This comes up often and is only a warning, but annoying when looking for actual compiler errors.

Either modify format_helper/format, or add -Wnoformat-security to compiler flags.

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

No branches or pull requests

1 participant