Page MenuHomePhabricator

efl 1.21.0 build error with -Werror=format-security
Closed, ResolvedPublic

Description

Hello,

efl 1.21.0 fails to build with -Werror=format-security:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../src/lib/efl -I../src/lib/efl -Wall -Wextra -Wpointer-arith -Wno-missing-field-initializers -fvisibility=hidden -fdata-sections -ffunction-sections -I../src/lib/efl -I../src/lib/efl -I../src/bindings/cxx/efl -I../src/bindings/efl -I../src/lib/eina -I../src/lib/eina -I../src/lib/eo -I../src/lib/eo -DEFL_BUILD=1 -DEFL_GFX_FILTER_BETA -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/dev/shm/EFL/efl-1.21.0=. -fstack-protector-strong -Wformat -Werror=format-security -fvisibility=hidden -c lib/efl/interfaces/efl_ui_format.c  -fPIC -DPIC -o lib/efl/interfaces/.libs/libefl_la-efl_ui_format.o
lib/efl/interfaces/efl_ui_format.c: In function '_default_format_cb':
lib/efl/interfaces/efl_ui_format.c:133:9: error: format not a string literal and no format arguments [-Werror=format-security]
         eina_strbuf_append_printf(str, sd->template);
         ^~~~~~~~~~~~~~~~~~~~~~~~~