diff options
author | David Mitchell <davem@iabyn.com> | 2012-12-18 23:09:46 +0000 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2012-12-18 23:47:39 +0000 |
commit | bfd14e5219e2beca5044738e1e721818ee9d28c6 (patch) | |
tree | f0d37251b9b768c7f9ac861aca67a26ca393fc35 /mg_vtable.h | |
parent | fe54beba3a096a44113f13da9f1b10564e27a60a (diff) | |
download | perl-bfd14e5219e2beca5044738e1e721818ee9d28c6.tar.gz |
silence g++ warning with PL_magic_vtable_names
See this p5p thread for more details
<20121218144018.GQ1842@iabyn.com>
Diffstat (limited to 'mg_vtable.h')
-rw-r--r-- | mg_vtable.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 |