paulscherrerinstitute / StreamDevice

EPICS Driver for message based I/O
GNU General Public License v3.0
28 stars 42 forks source link

Quiet warning with -Wformat-security #87

Closed mdavidsaver closed 1 year ago

mdavidsaver commented 2 years ago

Best practice is to only use constant format strings, which ansiEscape() almost is.

This is an issue for me as I try to follow the Debian hardening recommended CFLAGS.

OP_SYS_CFLAGS += -fstack-protector-strong -Wformat -Werror=format-security
OP_SYS_CXXFLAGS += -fstack-protector-strong -Wformat -Werror=format-security
OP_SYS_CPPFLAGS += -Wdate-time -D_FORTIFY_SOURCE=2
dirk-zimoch commented 1 year ago

Merged