projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ddf82a2
)
clang fixes: tweak last commit
author
Ryan Lortie
<desrt@desrt.ca>
Sun, 8 Dec 2013 21:38:47 +0000
(16:38 -0500)
committer
Ryan Lortie
<desrt@desrt.ca>
Sun, 8 Dec 2013 21:38:47 +0000
(16:38 -0500)
We need to actually ignore "-Wformat-nonliteral" to make clang happy
glib/tests/test-printf.c
patch
|
blob
|
history
diff --git
a/glib/tests/test-printf.c
b/glib/tests/test-printf.c
index
0dba0c0
..
9330e1e
100644
(file)
--- a/
glib/tests/test-printf.c
+++ b/
glib/tests/test-printf.c
@@
-189,7
+189,7
@@
test_d (void)
* those rules right. So we fool gcc into not warning.
*/
#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wformat"
+#pragma GCC diagnostic ignored "-Wformat
-nonliteral
"
fmt = "% +d";
res = g_snprintf (buf, 128, fmt, 5);
g_assert_cmpint (res, ==, 2);