After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 701747 - glib/gmarkup.c compile fails with -Wformat-nonliteral
glib/gmarkup.c compile fails with -Wformat-nonliteral
Status: RESOLVED DUPLICATE of bug 691608
Product: glib
Classification: Platform
Component: build
2.36.x
Other Mac OS
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2013-06-06 15:19 UTC by Daniel Macks
Modified: 2013-06-06 15:30 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Daniel Macks 2013-06-06 15:19:57 UTC
Building glib-2.36.2 on OS X 10.7 with clang-4.2 (from xcode-4.6.2):

clang -DHAVE_CONFIG_H -I. -I.. -I.. -I../glib -I../glib -I.. -DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DGLIB_COMPILATION -DPCRE_STATIC -I/sw/include -Wall -Wstrict-prototypes -Werror=declaration-after-statement -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=format-security -Werror=format=2 -Werror=missing-include-dirs -Os -c gmarkup.c  -fno-common -DPIC -o .libs/libglib_2_0_la-gmarkup.o

gmarkup.c:2432:31: error: format string is not a string literal

      [-Werror,-Wformat-nonliteral]
  output1 = g_strdup_vprintf (format1->str, args);

                              ^~~~~~~~~~~~

gmarkup.c:2439:31: error: format string is not a string literal
      [-Werror,-Wformat-nonliteral]

  output2 = g_strdup_vprintf (format2->str, args2);

                              ^~~~~~~~~~~~
2 errors generated.
Comment 1 Daniel Macks 2013-06-06 15:30:48 UTC
Sorry for the noise...my bugzilla search-fu sucks this week:(

*** This bug has been marked as a duplicate of bug 691608 ***