summaryrefslogtreecommitdiff
path: root/ext/XS-APItest
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-12-05 20:14:20 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2014-12-05 21:13:49 -0500
commit50495f394177d692fdc9b5b859c8cdb1275a1262 (patch)
tree0a6f7dbfdbc64583f2d080718374ace4378c0658 /ext/XS-APItest
parent7f4bfd0b8b3f56f97734ae34e393ab217d243929 (diff)
downloadperl-50495f394177d692fdc9b5b859c8cdb1275a1262.tar.gz
Some versions of gcc -Wextra are too paranoid about { 0 }.
Diffstat (limited to 'ext/XS-APItest')
-rw-r--r--ext/XS-APItest/APItest.xs7
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/XS-APItest/APItest.xs b/ext/XS-APItest/APItest.xs
index 9f8e0a302c..86b94d5523 100644
--- a/ext/XS-APItest/APItest.xs
+++ b/ext/XS-APItest/APItest.xs
@@ -259,7 +259,12 @@ rmagical_a_dummy(pTHX_ IV idx, SV *sv) {
return 0;
}
-STATIC MGVTBL rmagical_b = { 0 };
+/* We could do "= { 0 };" but some versions of gcc do warn
+ * (with -Wextra) about missing initializer, this is probably gcc
+ * being a bit too paranoid. But since this is file-static, we can
+ * just have it without initializer, since it should get
+ * zero-initialized. */
+STATIC MGVTBL rmagical_b;
STATIC void
blockhook_csc_start(pTHX_ int full)