Maintenance - Mise à jour mensuelle Lundi 7 Décembre 2021 entre 7h00 et 9h00

Commit ade76b33 authored by Gauthier Quesnel's avatar Gauthier Quesnel
Browse files

gui: remove warnings

parent d6947c1c
Pipeline #34443 passed with stage
in 1 minute and 20 seconds
...@@ -202,7 +202,9 @@ struct constant_source ...@@ -202,7 +202,9 @@ struct constant_source
} }
status start_or_restart() noexcept status start_or_restart() noexcept
{} {
return status::success;
}
status update(source& src) noexcept status update(source& src) noexcept
{ {
...@@ -566,12 +568,12 @@ struct external_source ...@@ -566,12 +568,12 @@ struct external_source
data_array<text_file_source, text_file_source_id> text_file_sources; data_array<text_file_source, text_file_source_id> text_file_sources;
data_array<random_source, random_source_id> random_sources; data_array<random_source, random_source_id> random_sources;
std::mt19937_64 generator; std::mt19937_64 generator;
// Chunk of memory used by a model. // Chunk of memory used by a model.
sz block_size = 512; sz block_size = 512;
// Number of models can be attached to an external source. // Number of models can be attached to an external source.
sz block_number = 1024; sz block_number = 1024;
status init(const sz size) noexcept status init(const sz size) noexcept
{ {
......
...@@ -629,8 +629,7 @@ private: ...@@ -629,8 +629,7 @@ private:
return status::io_file_format_error; return status::io_file_format_error;
auto& cst = srcs.constant_sources.alloc(); auto& cst = srcs.constant_sources.alloc();
if (auto ret = cst.init(srcs.block_size); if (auto ret = cst.init(srcs.block_size); is_bad(ret)) {
is_bad(ret)) {
srcs.constant_sources.free(cst); srcs.constant_sources.free(cst);
return ret; return ret;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment