From bfd14e5219e2beca5044738e1e721818ee9d28c6 Mon Sep 17 00:00:00 2001 From: David Mitchell Date: Tue, 18 Dec 2012 23:09:46 +0000 Subject: silence g++ warning with PL_magic_vtable_names See this p5p thread for more details <20121218144018.GQ1842@iabyn.com> --- mg_vtable.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mg_vtable.h') diff --git a/mg_vtable.h b/mg_vtable.h index 316c555c5b..f391713761 100644 --- a/mg_vtable.h +++ b/mg_vtable.h @@ -91,7 +91,7 @@ enum { /* pass one of these to get_vtbl */ }; #ifdef DOINIT -EXTCONST char *PL_magic_vtable_names[magic_vtable_max] = { +EXTCONST char * const PL_magic_vtable_names[magic_vtable_max] = { "arylen", "arylen_p", "backref", @@ -123,7 +123,7 @@ EXTCONST char *PL_magic_vtable_names[magic_vtable_max] = { "vec" }; #else -EXTCONST char *PL_magic_vtable_names[magic_vtable_max]; +EXTCONST char * const PL_magic_vtable_names[magic_vtable_max]; #endif /* These all need to be 0, not NULL, as NULL can be (void*)0, which is a -- cgit v1.2.1