diff options
author | Steve Peters <steve@fisharerojo.org> | 2005-11-19 19:14:42 +0000 |
---|---|---|
committer | Steve Peters <steve@fisharerojo.org> | 2005-11-19 19:14:42 +0000 |
commit | 891c2e08c4b0cd567c57c23427f594d70b2bced2 (patch) | |
tree | 5aae2202e4d553f963a5c486eba8126b544a4765 /XSUB.h | |
parent | 65e66c80cefadd5e860e8232c69fd1a11e6c5b92 (diff) | |
download | perl-891c2e08c4b0cd567c57c23427f594d70b2bced2.tar.gz |
Down with "warning: code has no effect"
p4raw-id: //depot/perl@26176
Diffstat (limited to 'XSUB.h')
-rw-r--r-- | XSUB.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -320,7 +320,7 @@ Rethrows a previously caught exception. See L<perlguts/"Exception Handling">. */ #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<perlguts/"Exception Handling">. 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<perlguts/"Exception Handling">. arg = sv_2mortal(arg); \ } \ SvOKp(arg); \ - } + } } STMT_END #if 1 /* for compatibility */ # define VTBL_sv &PL_vtbl_sv |