perl-module: Fix return value of append_case subroutine. 104/pspp 20101115030516/pspp
authorBen Pfaff <blp@cs.stanford.edu>
Mon, 15 Nov 2010 06:13:37 +0000 (22:13 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Mon, 15 Nov 2010 06:17:22 +0000 (22:17 -0800)
commitd57112cbb560e8fd0c88d8a00f23226e6096bb66
tree6084b470dfa6d4fd9828ccef8cc2464dee6facf5
parent1951243f5b5c167942785f04c24e810acae0907e
perl-module: Fix return value of append_case subroutine.

The casewriter_write() function does not have a return value (it is
declared as "void"), but the append_case subroutine tried to use its
return value anyway.  This cannot work properly, of course, and in fact
caused problems on 64-bit builds in particular.

I don't know why there is no C compiler warning about this problem.  I
guess the Perl module build must somehow turn off a lot of GCC warnings.

Reported by bojo42 <bojo42@gmail.com> in bug #31611.
perl-module/PSPP.xs