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

Conflicting compiler flag #1

Open
sphaero opened this issue Dec 7, 2021 · 0 comments
Open

Conflicting compiler flag #1

sphaero opened this issue Dec 7, 2021 · 0 comments

Comments

@sphaero
Copy link

sphaero commented Dec 7, 2021

Somehow my python build has -Werror=format-security set

$ python3 -c 'import sysconfig; print(sysconfig.get_config_var("CFLAGS"))'
-Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g   -fstack-protector-strong -Wformat -Werror=format-security  -g -fwrapv -O2   

This results in errors building deargui.cpp

deargui/deargui.cpp: In lambda function:
deargui/deargui.cpp:431:27: error: format not a string literal and no format arguments [-Werror=format-security]
  431 |         ImGui::TextColored(col, fmt);
      |         ~~~~~~~~~~~~~~~~~~^~~~~~~~~~

I had to workaround it by doing:

CFLAGS="-Wno-error=format-security" python3 setup.py build
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