GNOME Bugzilla – Bug 692130
check for -Werror=format-security broken
Last modified: 2018-05-24 14:57:02 UTC
configure tries to check a list of warning flags to use. The check for the -Werror=format-security check however will return false since it checks the flags one-by-one, and format-security only works if used together with -Wformat: configure:28656: checking if gcc supports flag -Werror=format-security in envvar CFLAGS configure:28667: gcc -c -Werror -Werror=format-security -pthread conftest.c >&5 cc1: error: -Wformat-security ignored without -Wformat [-Werror=format-security] cc1: all warnings being treated as errors configure:28667: $? = 1 This results in the build never actually using -Werror=format-security (nor -Wformat-security), so these errors will go unchecked. glib git master, gcc (GCC) 4.7.2 20120921 (Red Hat 4.7.2-2).
I'd argue that the compiler is broken here...
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/656.