Compilation fails on Arch / GCC 12.1
The compiler option -Werror=format-security
in Arch Linux/GCC 12.1 seems to cause a compilation error:
[18/24] Compiling C object src/gdmap.p/main.c.o
FAILED: src/gdmap.p/main.c.o
cc -Isrc/gdmap.p -Isrc -I../gdmap-gtk3-git/src -I. -I../gdmap-gtk3-git -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/pixman-1 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cloudproviders -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 -I/usr/include/libxml2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O0 -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -pthread -Wno-deprecated-declarations -Wno-pointer-sign -MD -MQ src/gdmap.p/main.c.o -MF src/gdmap.p/main.c.o.d -o src/gdmap.p/main.c.o -c ../gdmap-gtk3-git/src/main.c
../gdmap-gtk3-git/src/main.c: In function 'main':
../gdmap-gtk3-git/src/main.c:57:5: error: format not a string literal and no format arguments [-Werror=format-security]
57 | g_warning(error->message);
| ^~~~~~~~~
Same issue with src/preferences.c:660:9
.