Skip to content

Commit 03d5d89

Browse files
committed
suppress two unused variable warnings from g++-4.8
1 parent 3b4243d commit 03d5d89

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

inst/include/Rcpp/api/meat/wrap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ template <typename InputIterator, typename KEY, typename VALUE, int RTYPE>
2929
inline SEXP range_wrap_dispatch___impl__pair( InputIterator first, InputIterator last, Rcpp::traits::true_type ){
3030
RCPP_DEBUG_3( "range_wrap_dispatch___impl__pair<KEY = %s, VALUE = %s, RTYPE = %d>\n", DEMANGLE(KEY), DEMANGLE(VALUE), RTYPE)
3131
size_t size = std::distance( first, last ) ;
32-
typedef typename Rcpp::traits::storage_type<RTYPE>::type STORAGE ;
32+
//typedef typename Rcpp::traits::storage_type<RTYPE>::type STORAGE ;
3333

3434
CharacterVector names(size) ;
3535
Vector<RTYPE> x(size) ;

inst/include/Rcpp/internal/wrap.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,9 @@ inline SEXP range_wrap_dispatch___impl( InputIterator first, InputIterator last,
411411
*/
412412
template<typename InputIterator, typename T>
413413
inline SEXP range_wrap_dispatch( InputIterator first, InputIterator last ){
414+
#if RCPP_DEBUG_LEVEL > 0
414415
typedef typename ::Rcpp::traits::r_type_traits<T>::r_category categ ;
416+
#endif
415417
RCPP_DEBUG_3( "range_wrap_dispatch< InputIterator = \n%s , T = %s, categ = %s>\n", DEMANGLE(InputIterator), DEMANGLE(T), DEMANGLE(categ) ) ;
416418
return range_wrap_dispatch___impl<InputIterator,T>( first, last, typename ::Rcpp::traits::r_type_traits<T>::r_category() ) ;
417419
}

0 commit comments

Comments
 (0)