Skip to content

Commit e1ef61d

Browse files
krlmlreddelbuettel
authored andcommitted
BEGIN_RCPP uses the variables it defines (#671)
* new BEGIN_RCPP_RETURN_ERROR that doesn't define unused variables * silently remove warning instead
1 parent d4ec13f commit e1ef61d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

inst/include/Rcpp/macros/macros.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
#ifndef BEGIN_RCPP
3030
#define BEGIN_RCPP \
3131
int rcpp_output_type = 0 ; \
32+
(void)rcpp_output_type; \
3233
SEXP rcpp_output_condition = R_NilValue ; \
34+
(void)rcpp_output_condition; \
3335
try {
3436
#endif
3537

0 commit comments

Comments
 (0)