Skip to content

Commit 1ddbc9f

Browse files
committed
avoid macro collisions
1 parent 4fd632e commit 1ddbc9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inst/include/Rcpp/exceptions.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ namespace Rcpp {
108108

109109
// Variadic / code generated version of the warning and stop functions
110110
// can be found within the respective C++11 or C++98 exceptions.h
111-
// included below
111+
// included below.
112112
inline void warning(const std::string& message) { // #nocov start
113-
Rf_warning(message.c_str());
113+
::Rf_warning("%s", message.c_str());
114114
} // #nocov end
115115

116116
inline void NORET stop(const std::string& message) { // #nocov start

0 commit comments

Comments
 (0)