From: Marcus Holland-Moritz Date: Fri, 24 Oct 2008 21:41:36 +0000 (+0000) Subject: Make C++ compilers happy #2: const POD without initializer X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b61433a9ad8e0c9bd78643b0e98c119904617002;p=p5sagit%2Fp5-mst-13.2.git Make C++ compilers happy #2: const POD without initializer is an error for g++, even when static. p4raw-id: //depot/perl@34575 --- diff --git a/perl.c b/perl.c index ba5a208..c959815 100644 --- a/perl.c +++ b/perl.c @@ -662,7 +662,7 @@ perl_destruct(pTHXx) int f; const char *where; /* Our success message is an integer 0, and a char 0 */ - static const char success[sizeof(int) + 1]; + static const char success[sizeof(int) + 1] = {0}; close(fd[0]);