Skip to content

Commit

Permalink
Remove name for unused arguments (#672)
Browse files Browse the repository at this point in the history
* annotate unused arguments

* remove name for unused args
  • Loading branch information
krlmlr authored and eddelbuettel committed Apr 14, 2017
1 parent 940e34e commit e852135
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion inst/include/Rcpp/sugar/functions/rep.h
Expand Up @@ -53,7 +53,7 @@ class Rep_Single : public Rcpp::VectorBase<
public:
Rep_Single( const T& x_, R_xlen_t n_) : x(x_), n(n_){}

inline T operator[]( R_xlen_t i ) const {
inline T operator[]( R_xlen_t ) const {
return x;
}
inline R_xlen_t size() const { return n ; }
Expand Down
2 changes: 1 addition & 1 deletion src/Rcpp_init.cpp
Expand Up @@ -121,7 +121,7 @@ void registerFunctions(){
}


extern "C" void R_unload_Rcpp(DllInfo *info) { // #nocov start
extern "C" void R_unload_Rcpp(DllInfo *) { // #nocov start
// Release resources
} // #nocov end

Expand Down
14 changes: 5 additions & 9 deletions src/attributes.cpp
Expand Up @@ -696,8 +696,7 @@ namespace attributes {
virtual bool commit(const std::vector<std::string>& includes);

private:
virtual void doWriteFunctions(const SourceFileAttributes& attributes,
bool verbose) {}
virtual void doWriteFunctions(const SourceFileAttributes&, bool) {}
std::string getHeaderGuard() const;

private:
Expand Down Expand Up @@ -2002,7 +2001,7 @@ namespace attributes {

void CppExportsIncludeGenerator::doWriteFunctions(
const SourceFileAttributes& attributes,
bool verbose) {
bool) {

// don't write anything if there is no C++ interface
if (!attributes.hasInterface(kInterfaceCpp))
Expand Down Expand Up @@ -2180,9 +2179,7 @@ namespace attributes {
}
}

bool CppPackageIncludeGenerator::commit(
const std::vector<std::string>& includes) {

bool CppPackageIncludeGenerator::commit(const std::vector<std::string>&) {
if (hasCppInterface()) {

// create the include dir if necessary
Expand Down Expand Up @@ -2212,8 +2209,7 @@ namespace attributes {

void RExportsGenerator::doWriteFunctions(
const SourceFileAttributes& attributes,
bool verbose) {

bool) {
// write standalone roxygen chunks
const std::vector<std::vector<std::string> >& roxygenChunks =
attributes.roxygenChunks();
Expand Down Expand Up @@ -2282,7 +2278,7 @@ namespace attributes {
}
}

bool RExportsGenerator::commit(const std::vector<std::string>& includes) {
bool RExportsGenerator::commit(const std::vector<std::string>&) {
return ExportsGenerator::commit();
}

Expand Down

0 comments on commit e852135

Please sign in to comment.