зеркало из https://github.com/microsoft/LightGBM.git
[SWIG] fix compiler warning about unused variable in SWIG (#4419)
* Update StringArray.i * Update StringArray_API_extensions.i
This commit is contained in:
Родитель
189a80181e
Коммит
6a195a1bec
|
@ -31,7 +31,7 @@
|
|||
StringArrayHandle StringArrayHandle_create(size_t num_strings, size_t string_size) {
|
||||
try {
|
||||
return new StringArray(num_strings, string_size);
|
||||
} catch (std::bad_alloc &e) {
|
||||
} catch (std::bad_alloc &/*e*/) {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
|
||||
try {
|
||||
strings.reset(new StringArray(eval_counts, string_size));
|
||||
} catch (std::bad_alloc &e) {
|
||||
} catch (std::bad_alloc &/*e*/) {
|
||||
LGBM_SetLastError("Failure to allocate memory.");
|
||||
return nullptr;
|
||||
}
|
||||
|
@ -92,7 +92,7 @@
|
|||
|
||||
try {
|
||||
strings.reset(new StringArray(num_features, max_feature_name_size));
|
||||
} catch (std::bad_alloc &e) {
|
||||
} catch (std::bad_alloc &/*e*/) {
|
||||
LGBM_SetLastError("Failure to allocate memory.");
|
||||
return nullptr;
|
||||
}
|
||||
|
@ -131,7 +131,7 @@
|
|||
nullptr));
|
||||
try {
|
||||
strings.reset(new StringArray(num_features, max_feature_name_size));
|
||||
} catch (std::bad_alloc &e) {
|
||||
} catch (std::bad_alloc &/*e*/) {
|
||||
LGBM_SetLastError("Failure to allocate memory.");
|
||||
return nullptr;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче