Skip to content

Commit 2c99039

Browse files
jeffpollock9eddelbuettel
authored andcommitted
remove unsed variable warning (#732)
1 parent ebd782a commit 2c99039

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

inst/include/Rcpp/Module.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ namespace Rcpp{
100100
typedef Rcpp::XPtr<Class> XP ;
101101

102102
CppMethod() {}
103-
virtual SEXP operator()(Class* object, SEXP* args) { return R_NilValue ; }
103+
virtual SEXP operator()(Class* /*object*/, SEXP* /*args*/) { return R_NilValue ; }
104104
virtual ~CppMethod(){}
105105
virtual int nargs(){ return 0 ; }
106106
virtual bool is_void(){ return false ; }

inst/include/Rcpp/module/Module_generated_Constructor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Constructor_Base {
3333
template <typename Class>
3434
class Constructor_0 : public Constructor_Base<Class>{
3535
public:
36-
virtual Class* get_new( SEXP* args, int nargs ){
36+
virtual Class* get_new( SEXP* /*args*/, int /*nargs*/ ){
3737
return new Class() ;
3838
}
3939
virtual int nargs(){ return 0 ; }

0 commit comments

Comments
 (0)