Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
waLBerla
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michael Gardner
waLBerla
Commits
f0e61dc5
Commit
f0e61dc5
authored
4 years ago
by
Markus Holzer
Committed by
Michael Kuron
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[FIX] Warning -Wmaybe-uninitialized
parent
a50adf71
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/cuda/communication/CustomMemoryBuffer.h
+3
-3
3 additions, 3 deletions
src/cuda/communication/CustomMemoryBuffer.h
src/cuda/communication/CustomMemoryBuffer.impl.h
+1
-0
1 addition, 0 deletions
src/cuda/communication/CustomMemoryBuffer.impl.h
with
4 additions
and
3 deletions
src/cuda/communication/CustomMemoryBuffer.h
+
3
−
3
View file @
f0e61dc5
...
@@ -85,9 +85,9 @@ namespace communication {
...
@@ -85,9 +85,9 @@ namespace communication {
T
*
advanceNoResize
(
std
::
size_t
bytes
)
{
return
reinterpret_cast
<
T
*>
(
advanceNoResize
(
bytes
*
sizeof
(
T
)));
}
T
*
advanceNoResize
(
std
::
size_t
bytes
)
{
return
reinterpret_cast
<
T
*>
(
advanceNoResize
(
bytes
*
sizeof
(
T
)));
}
private
:
private
:
ElementType
*
begin_
;
ElementType
*
begin_
=
nullptr
;
ElementType
*
cur_
;
ElementType
*
cur_
=
nullptr
;
ElementType
*
end_
;
ElementType
*
end_
=
nullptr
;
};
};
...
...
This diff is collapsed.
Click to expand it.
src/cuda/communication/CustomMemoryBuffer.impl.h
+
1
−
0
View file @
f0e61dc5
...
@@ -45,6 +45,7 @@ namespace communication {
...
@@ -45,6 +45,7 @@ namespace communication {
template
<
typename
Allocator
>
template
<
typename
Allocator
>
CustomMemoryBuffer
<
Allocator
>::
CustomMemoryBuffer
(
const
CustomMemoryBuffer
&
pb
)
CustomMemoryBuffer
<
Allocator
>::
CustomMemoryBuffer
(
const
CustomMemoryBuffer
&
pb
)
:
begin_
(
nullptr
),
cur_
(
nullptr
),
end_
(
nullptr
)
{
{
if
(
pb
.
begin_
!=
nullptr
)
if
(
pb
.
begin_
!=
nullptr
)
{
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment