Commit c8879bfa authored by Sam Protsenko's avatar Sam Protsenko

Fix -Wformat-security error

As -Werror flag is used in src/Makefile.am, next error occurs:

    gui.c: In function ‘gui_report_error’:
    gui.c:134:17: error: format not a string literal and no
                  format arguments [-Werror=format-security]
                  message);

Disable -Wformat-security in order to fix the build, before the code is
actually fixed.
Signed-off-by: 's avatarSam Protsenko <joe.skb7@gmail.com>
parent b4c0354a
......@@ -5,7 +5,7 @@
bin_PROGRAMS = x11spice
ALL_XCB_CFLAGS=$(XCB_CFLAGS) $(DAMAGE_CFLAGS) $(XTEST_CFLAGS) $(SHM_CFLAGS) $(UTIL_CFLAGS) $(XKB_CFLAGS) $(XFIXES_CFLAGS)
ALL_XCB_LIBS=$(XCB_LIBS) $(DAMAGE_LIBS) $(XTEST_LIBS) $(SHM_LIBS) $(UTIL_LIBS) $(XKB_LIBS) $(XFIXES_LIBS)
CUSTOM_CFLAGS=-Wall -Wno-deprecated-declarations -Werror
CUSTOM_CFLAGS=-Wall -Wno-deprecated-declarations -Wno-format-security -Werror
AM_CFLAGS = $(CUSTOM_CFLAGS) $(ALL_XCB_CFLAGS) $(GTK_CFLAGS) $(SPICE_CFLAGS) $(SPICE_PROTOCOL_CFLAGS) $(GLIB2_CFLAGS) $(PIXMAN_CFLAGS) $(CODE_COVERAGE_CFLAGS)
x11spice_LDADD = $(ALL_XCB_LIBS) $(GTK_LIBS) $(SPICE_LIBS) $(GLIB2_LIBS) $(PIXMAN_LIBS) $(CODE_COVERAGE_LDFLAGS)
x11spice_SOURCES = \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment