Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
6a195a1b
Unverified
Commit
6a195a1b
authored
Jun 30, 2021
by
Nikita Titov
Committed by
GitHub
Jun 30, 2021
Browse files
[SWIG] fix compiler warning about unused variable in SWIG (#4419)
* Update StringArray.i * Update StringArray_API_extensions.i
parent
189a8018
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
swig/StringArray.i
swig/StringArray.i
+1
-1
swig/StringArray_API_extensions.i
swig/StringArray_API_extensions.i
+3
-3
No files found.
swig/StringArray.i
View file @
6a195a1b
...
...
@@ -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
;
}
}
...
...
swig/StringArray_API_extensions.i
View file @
6a195a1b
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment