Skip to content

Commit 6674443

Browse files
committed
refinement thanks to Kevin
1 parent 47f6e91 commit 6674443

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

inst/include/Rcpp/macros/macros.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@
100100
} \
101101
UNPROTECT(nprot); \
102102
return R_NilValue; \
103-
if (stop_sym == R_NilValue) /* never reached but */ \
104-
return R_NilValue; /* suppresses warning*/
103+
(void) stop_sym; /* never reached but suppresses warning */
105104
#endif
106105

107106
#define Rcpp_error(MESSAGE) throw Rcpp::exception(MESSAGE, __FILE__, __LINE__)

0 commit comments

Comments
 (0)