X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl.h;h=7e66b56c65a3c5771813c5a7553d4eee096f6967;hb=fd996479e27a404cbaed7b3ad029feb14440afb0;hp=4cd9a2b58699186ab28ba09e3bb3a1aa907e3ce7;hpb=e82be400b1a05af41d9d7f8509dfe352c4f1c75f;p=p5sagit%2Fp5-mst-13.2.git diff --git a/perl.h b/perl.h index 4cd9a2b..7e66b56 100644 --- a/perl.h +++ b/perl.h @@ -2651,7 +2651,11 @@ typedef struct clone_params CLONE_PARAMS; # if HAS_FLOATINGPOINT_H # include # endif -# define PERL_FPU_INIT fpsetmask(0) +/* Some operating systems have this as a macro, which in turn expands to a comma + expression, and the last sub-expression is something that gets calculated, + and then they have the gall to warn that a value computed is not used. Hence + cast to void. */ +# define PERL_FPU_INIT (void)fpsetmask(0) # else # if defined(SIGFPE) && defined(SIG_IGN) && !defined(PERL_MICRO) # define PERL_FPU_INIT PL_sigfpe_saved = (Sighandler_t) signal(SIGFPE, SIG_IGN) @@ -6004,6 +6008,8 @@ extern void moncontrol(int); #endif /* Include guard */ +#define CLEAR_ERRSV() STMT_START { sv_setpvn(ERRSV,"",0); if (SvMAGICAL(ERRSV)) { mg_free(ERRSV); } SvPOK_only(ERRSV); } STMT_END + /* * Local variables: * c-indentation-style: bsd