Skip to content

Commit b042d09

Browse files
krlmlreddelbuettel
authored andcommitted
don't declare unused arguments (#716)
for -Wextra
1 parent 6691c5f commit b042d09

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

inst/include/Rcpp/exceptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ namespace Rcpp {
3333
include_call_(include_call){
3434
rcpp_set_stack_trace(Shield<SEXP>(stack_trace()));
3535
}
36-
exception(const char* message_, const char* file, int line, bool include_call = true) :
36+
exception(const char* message_, const char*, int, bool include_call = true) :
3737
message(message_),
3838
include_call_(include_call){
3939
rcpp_set_stack_trace(Shield<SEXP>(stack_trace()));

src/attributes.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2199,7 +2199,7 @@ namespace attributes {
21992199
}
22002200
}
22012201

2202-
void CppExportsIncludeGenerator::writeEnd(bool hasPackageInit) {
2202+
void CppExportsIncludeGenerator::writeEnd(bool) {
22032203
ostr() << "}" << std::endl;
22042204
ostr() << std::endl;
22052205
ostr() << "#endif // " << getHeaderGuard() << std::endl;
@@ -2283,7 +2283,7 @@ namespace attributes {
22832283
includeDir_ = packageDir + fileSep + "inst" + fileSep + "include";
22842284
}
22852285

2286-
void CppPackageIncludeGenerator::writeEnd(bool hasPackageInit) {
2286+
void CppPackageIncludeGenerator::writeEnd(bool) {
22872287
if (hasCppInterface()) {
22882288
// header guard
22892289
std::string guard = getHeaderGuard(); // #nocov start
@@ -2390,7 +2390,7 @@ namespace attributes {
23902390
}
23912391
}
23922392

2393-
void RExportsGenerator::writeEnd(bool hasPackageInit) {
2393+
void RExportsGenerator::writeEnd(bool) {
23942394
if (hasCppInterface()) { // #nocov start
23952395
// register all C-callable functions
23962396
ostr() << "# Register entry points for exported C++ functions"

0 commit comments

Comments
 (0)