]> git.vpit.fr Git - perl/modules/Scope-Upper.git/commitdiff
Fix context_info() warnings field for perl 5.17.4
authorVincent Pit <vince@profvince.com>
Thu, 20 Sep 2012 19:38:41 +0000 (21:38 +0200)
committerVincent Pit <vince@profvince.com>
Thu, 20 Sep 2012 19:38:41 +0000 (21:38 +0200)
Upper.xs

index 308bb7c0dcfffe949b1ead9ca2baed8e5e029a64..a5111f242029fd0ec84c13d87a8323e882712753 100644 (file)
--- a/Upper.xs
+++ b/Upper.xs
@@ -2669,7 +2669,11 @@ PPCODE:
    if (PL_dowarn & G_WARN_ON)
     goto context_info_warnings_on;
    else
+#if SU_HAS_PERL(5, 17, 4)
+    mask = &PL_sv_undef;
+#else
     goto context_info_warnings_off;
+#endif
   } else if (old_warnings == pWARN_NONE) {
 context_info_warnings_off:
    mask = su_newmortal_pvn(WARN_NONEstring, WARNsize);