Change 34991 by [EMAIL PROTECTED] on 2008/12/03 11:29:29

        Integrate:
        [ 34977]
        Avoid warnings from exacting C compilers when -DNO_MATHOMS is in force.

Affected files ...

... //depot/maint-5.10/perl/mathoms.c#3 integrate

Differences ...

==== //depot/maint-5.10/perl/mathoms.c#3 (text) ====
Index: perl/mathoms.c
--- perl/mathoms.c#2~34599~     2008-10-26 14:44:48.000000000 -0700
+++ perl/mathoms.c      2008-12-03 03:29:29.000000000 -0800
@@ -14,7 +14,7 @@
  * hand to hand were of that sort." 
  */
 
-#ifndef NO_MATHOMS
+
 
 /* 
  * This file contains mathoms, various binary artifacts from previous
@@ -29,6 +29,12 @@
 #define PERL_IN_MATHOMS_C
 #include "perl.h"
 
+#ifdef NO_MATHOMS
+/* ..." warning: ISO C forbids an empty source file"
+   So make sure we have something in here by processing the headers anyway.
+ */
+#else
+
 PERL_CALLCONV OP * Perl_ref(pTHX_ OP *o, I32 type);
 PERL_CALLCONV void Perl_sv_unref(pTHX_ SV *sv);
 PERL_CALLCONV void Perl_sv_taint(pTHX_ SV *sv);
End of Patch.

Reply via email to