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
b70636bc
Unverified
Commit
b70636bc
authored
Mar 04, 2020
by
Nikita Titov
Committed by
GitHub
Mar 04, 2020
Browse files
fix warnings in debug mode about that not all control paths return a value (#2866)
parent
d018d30a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/c_api.cpp
src/c_api.cpp
+3
-0
No files found.
src/c_api.cpp
View file @
b70636bc
...
@@ -1798,6 +1798,7 @@ RowFunctionFromDenseMatric(const void* data, int num_row, int num_col, int data_
...
@@ -1798,6 +1798,7 @@ RowFunctionFromDenseMatric(const void* data, int num_row, int num_col, int data_
}
}
}
}
Log
::
Fatal
(
"Unknown data type in RowFunctionFromDenseMatric"
);
Log
::
Fatal
(
"Unknown data type in RowFunctionFromDenseMatric"
);
return
nullptr
;
}
}
std
::
function
<
std
::
vector
<
std
::
pair
<
int
,
double
>>
(
int
row_idx
)
>
std
::
function
<
std
::
vector
<
std
::
pair
<
int
,
double
>>
(
int
row_idx
)
>
...
@@ -1902,6 +1903,7 @@ RowFunctionFromCSR(const void* indptr, int indptr_type, const int32_t* indices,
...
@@ -1902,6 +1903,7 @@ RowFunctionFromCSR(const void* indptr, int indptr_type, const int32_t* indices,
}
}
}
}
Log
::
Fatal
(
"Unknown data type in RowFunctionFromCSR"
);
Log
::
Fatal
(
"Unknown data type in RowFunctionFromCSR"
);
return
nullptr
;
}
}
std
::
function
<
std
::
pair
<
int
,
double
>
(
int
idx
)
>
std
::
function
<
std
::
pair
<
int
,
double
>
(
int
idx
)
>
...
@@ -1967,6 +1969,7 @@ IterateFunctionFromCSC(const void* col_ptr, int col_ptr_type, const int32_t* ind
...
@@ -1967,6 +1969,7 @@ IterateFunctionFromCSC(const void* col_ptr, int col_ptr_type, const int32_t* ind
}
}
}
}
Log
::
Fatal
(
"Unknown data type in CSC matrix"
);
Log
::
Fatal
(
"Unknown data type in CSC matrix"
);
return
nullptr
;
}
}
CSC_RowIterator
::
CSC_RowIterator
(
const
void
*
col_ptr
,
int
col_ptr_type
,
const
int32_t
*
indices
,
CSC_RowIterator
::
CSC_RowIterator
(
const
void
*
col_ptr
,
int
col_ptr_type
,
const
int32_t
*
indices
,
...
...
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