From: Steve Peters Date: Sat, 19 Nov 2005 19:14:42 +0000 (+0000) Subject: Down with "warning: code has no effect" X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=891c2e08c4b0cd567c57c23427f594d70b2bced2;p=p5sagit%2Fp5-mst-13.2.git Down with "warning: code has no effect" p4raw-id: //depot/perl@26176 --- diff --git a/XSUB.h b/XSUB.h index c38ccd2..b3e586c 100644 --- a/XSUB.h +++ b/XSUB.h @@ -320,7 +320,7 @@ Rethrows a previously caught exception. See L. */ #define DBM_setFilter(db_type,code) \ - { \ + STMT_START { \ if (db_type) \ RETVAL = sv_mortalcopy(db_type) ; \ ST(0) = RETVAL ; \ @@ -334,9 +334,10 @@ Rethrows a previously caught exception. See L. else \ db_type = newSVsv(code) ; \ } \ - } + } STMT_END #define DBM_ckFilter(arg,type,name) \ + STMT_START { \ if (db->type) { \ if (db->filtering) { \ croak("recursion detected in %s", name) ; \ @@ -361,7 +362,7 @@ Rethrows a previously caught exception. See L. arg = sv_2mortal(arg); \ } \ SvOKp(arg); \ - } + } } STMT_END #if 1 /* for compatibility */ # define VTBL_sv &PL_vtbl_sv