[R] Fix clang warning. (#9874)
This commit is contained in:
parent
125bc812f8
commit
1c6e031c75
@ -154,12 +154,12 @@ SEXP SafeMkChar(const char *c_str, SEXP continuation_token) {
|
|||||||
} \
|
} \
|
||||||
PutRNGstate();
|
PutRNGstate();
|
||||||
|
|
||||||
/*!
|
/**
|
||||||
* \brief macro to check the call.
|
* @brief Macro for checking XGBoost return code.
|
||||||
*/
|
*/
|
||||||
#define CHECK_CALL(x) \
|
#define CHECK_CALL(__rc) \
|
||||||
if ((x) != 0) { \
|
if ((__rc) != 0) { \
|
||||||
error(XGBGetLastError()); \
|
Rf_error("%s", XGBGetLastError()); \
|
||||||
}
|
}
|
||||||
|
|
||||||
using dmlc::BeginPtr;
|
using dmlc::BeginPtr;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user