Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gauthier Quesnel
irritator
Commits
ade76b33
Commit
ade76b33
authored
Jun 07, 2021
by
Gauthier Quesnel
Browse files
gui: remove warnings
parent
d6947c1c
Pipeline
#34443
passed with stage
in 1 minute and 20 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
lib/include/irritator/external_source.hpp
View file @
ade76b33
...
...
@@ -202,7 +202,9 @@ struct constant_source
}
status
start_or_restart
()
noexcept
{}
{
return
status
::
success
;
}
status
update
(
source
&
src
)
noexcept
{
...
...
@@ -566,12 +568,12 @@ struct external_source
data_array
<
text_file_source
,
text_file_source_id
>
text_file_sources
;
data_array
<
random_source
,
random_source_id
>
random_sources
;
std
::
mt19937_64
generator
;
// Chunk of memory used by a model.
sz
block_size
=
512
;
// Number of models can be attached to an external source.
sz
block_number
=
1024
;
sz
block_number
=
1024
;
status
init
(
const
sz
size
)
noexcept
{
...
...
lib/include/irritator/io.hpp
View file @
ade76b33
...
...
@@ -629,8 +629,7 @@ private:
return
status
::
io_file_format_error
;
auto
&
cst
=
srcs
.
constant_sources
.
alloc
();
if
(
auto
ret
=
cst
.
init
(
srcs
.
block_size
);
is_bad
(
ret
))
{
if
(
auto
ret
=
cst
.
init
(
srcs
.
block_size
);
is_bad
(
ret
))
{
srcs
.
constant_sources
.
free
(
cst
);
return
ret
;
}
...
...
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