This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regmatch(): silence OpenWatcom compiler warnings
authorDavid Mitchell <davem@iabyn.com>
Wed, 21 Nov 2012 17:01:38 +0000 (17:01 +0000)
committerDavid Mitchell <davem@iabyn.com>
Wed, 21 Nov 2012 18:25:54 +0000 (18:25 +0000)
commitc31ee3bbc31a4f8c5b4850ce38fb8c353dca688f
tree4984520b6cf3fee23ef702b1873138a31c80a3fc
parenta1cb46099467792c14d13a5d8389d2afd950b2b7
regmatch(): silence OpenWatcom compiler warnings

There are two MULTICALL variables which are assigned to in one branch,
but not the other. The values of these variables are never used.
OpenWatcom complains about this, and the easiest way to shut it up may be
to assign null values in the other branch. As bulk88 pointed out, these
assignments should be optimised away anyway.

Based on a patch originally submitted by Reini Urban, but without
removing the PERL_UNUSED_VAR's required for gcc.

See the thread <50A2B8E5.5030401@gknw.net> for more info.
regexec.c