deargui
deargui copied to clipboard
Conflicting compiler flag
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