From: Ben Pfaff Date: Tue, 27 Jun 2017 21:52:40 +0000 (-0400) Subject: perl-module: Avoid VERSION redefinition warning from compiler. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp;a=commitdiff_plain;h=b795616d57f3a26415aee6a30edfd00ef004e31b perl-module: Avoid VERSION redefinition warning from compiler. If the PSPP version includes a suffix like "-pre1", then Perl will strip that suffix from the version it passes to the compiler using -DVERSION=..., and will re-define it with the full version string. This causes a warning. This change avoids the warning. I am not yet aware of a new problem that it causes. --- diff --git a/perl-module/PSPP.xs b/perl-module/PSPP.xs index 909ffe9e53..74ea561170 100644 --- a/perl-module/PSPP.xs +++ b/perl-module/PSPP.xs @@ -17,6 +17,7 @@ 02110-1301, USA. */ +#undef VERSION #include /* The Gnulib "strftime" module defines my_strftime in for use by