Skip to content

Commit 279801e

Browse files
authored
Fix -Wunused-parameter (Clang only) (#1536)
Unlike GCC, Clang warns about unused parameters in uninstantiated templates, breaking every TU that includes Rcpp under `-Wextra -Werror`.
1 parent a8fa844 commit 279801e

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎ChangeLog‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2026-11-27 David Seifert <soap@gentoo.org>
2+
3+
* inst/include/Rcpp/internal/wrap.h: Comment out parameter to avoid
4+
-Wunused-parameter warnings
5+
16
2026-11-23 Dirk Eddelbuettel <edd@debian.org>
27

38
* vignettes/rmd/Rcpp.bib: Correct misspelling of gitlab

‎inst/include/Rcpp/internal/wrap.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ namespace Rcpp {
523523
* quite a cryptic message
524524
*/
525525
template <typename T>
526-
inline SEXP wrap_dispatch_unknown_iterable(const T& object, ::Rcpp::traits::false_type) {
526+
inline SEXP wrap_dispatch_unknown_iterable(const T& /*object*/, ::Rcpp::traits::false_type) {
527527
RCPP_DEBUG_1("wrap_dispatch_unknown_iterable<%s>(., false )", DEMANGLE(T))
528528
// here we know that T is not convertible to SEXP
529529
static_assert(!sizeof(T), "cannot convert type to SEXP");

0 commit comments

Comments
 (0)