Skip to content

Commit

Permalink
[R] Fix clang warning. (#9874)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis authored Dec 14, 2023
1 parent 125bc81 commit 1c6e031
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions R-package/src/xgboost_R.cc
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,12 @@ SEXP SafeMkChar(const char *c_str, SEXP continuation_token) {
} \
PutRNGstate();

/*!
* \brief macro to check the call.
/**
* @brief Macro for checking XGBoost return code.
*/
#define CHECK_CALL(x) \
if ((x) != 0) { \
error(XGBGetLastError()); \
#define CHECK_CALL(__rc) \
if ((__rc) != 0) { \
Rf_error("%s", XGBGetLastError()); \
}

using dmlc::BeginPtr;
Expand Down

0 comments on commit 1c6e031

Please sign in to comment.