Skip to content

Noisy installations of Rcpp 1.0.1 due to changes in RcppExports.cpp #951

@eddelbuettel

Description

@eddelbuettel
[...]
/usr/local/lib/R-devel/lib/R/library/Rcpp/include/Rcpp/macros/macros.h:36:17: warning: unused variable ‘stop_sym’ [-Wunused-variable]
     static SEXP stop_sym = Rf_install("stop");                                                   \
                 ^~~~~~~~
/usr/local/lib/R-devel/lib/R/library/Rcpp/include/Rcpp/macros/macros.h:36:17: note: in definition of macro ‘BEGIN_RCPP’
     static SEXP stop_sym = Rf_install("stop");                                                   \
                 ^~~~~~~~
RcppExports.cpp: In function ‘SEXPREC* _RQuantLib_europeanOptionArraysEngine_try(SEXP, SEXP)’:
/usr/local/lib/R-devel/lib/R/library/Rcpp/include/Rcpp/macros/macros.h:32:9: warning: unused variable ‘nprot’ [-Wunused-variable]
     int nprot = 0;                                                                               \
         ^~~~~
/usr/local/lib/R-devel/lib/R/library/Rcpp/include/Rcpp/macros/macros.h:32:9: note: in definition of macro ‘BEGIN_RCPP’
     int nprot = 0;                                                                               \
         ^~~~~
/usr/local/lib/R-devel/lib/R/library/Rcpp/include/Rcpp/macros/macros.h:36:17: warning: unused variable ‘stop_sym’ [-Wunused-variable]
     static SEXP stop_sym = Rf_install("stop");                                                   \
                 ^~~~~~~~
/usr/local/lib/R-devel/lib/R/library/Rcpp/include/Rcpp/macros/macros.h:36:17: note: in definition of macro ‘BEGIN_RCPP’
     static SEXP stop_sym = Rf_install("stop");                                                   \
                 ^~~~~~~~

@romainfrancois @lionel- @kevinushey Any better idea than inserting a fake check or use?
Seems silly to waste cycles on this. Can we add a sentinel function just to fake the compiler?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions