further fix to SvUPGRADE
authorDavid Mitchell <davem@iabyn.com>
Fri, 14 Dec 2012 21:28:02 +0000 (21:28 +0000)
committerDavid Mitchell <davem@iabyn.com>
Fri, 14 Dec 2012 23:01:16 +0000 (23:01 +0000)
commit24e088424d00bddc47a2aa3c7233e7d9b6f372b8
treea0d9c66a098fa0519fa94feac60951655fa9433b
parentaac486f1db32b022ef113b1097cc0b38b713b121
further fix to SvUPGRADE

The change to SvUPGRADE introduced by 463ea2290a54e a few commits ago
to silence a warning with clang, broke g++ builds instead. Here's
a second attempt to keep everyone happy.

Basically it avoids warnings from all of gcc, g++ and clang for the two
constructs

    SvUPGRADE(...);
    (void)SvUPGRADE(...);

But still breaks

    if (!SvUPGRADE(...) { croak(...); }

which I don't care about.
sv.h