Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
154486e0
Commit
154486e0
authored
Mar 15, 2016
by
Etienne Renault
Browse files
bricks: fix clang warnings
* bricks/brick-hash.h, bricks/brick-shmem.h: here.
parent
4eff22ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
bricks/brick-hash.h
View file @
154486e0
...
...
@@ -800,7 +800,7 @@ struct Jenkins {
saw
[
i
]
=
SpookyHash
::
Hash32
(
buf
,
i
,
0
);
if
(
saw
[
i
]
!=
expected
[
i
])
{
printf
(
"%3d: saw 0x%.8x, expected 0x%.8lx
\n
"
,
i
,
saw
[
i
],
expected
[
i
]);
printf
(
"%3d: saw 0x%.8x, expected 0x%.8lx
\n
"
,
i
,
saw
[
i
],
(
unsigned
long
)
expected
[
i
]);
ASSERT
(
false
);
}
}
...
...
bricks/brick-shmem.h
View file @
154486e0
...
...
@@ -369,7 +369,7 @@ protected:
Node
*
next
;
Node
()
{
read
=
write
=
buffer
;
next
=
0
;
next
=
nullptr
;
}
};
...
...
@@ -393,7 +393,7 @@ public:
~
Fifo
()
{
while
(
head
!=
tail
)
{
Node
*
next
=
head
->
next
;
ASSERT
(
next
!=
0
);
ASSERT
(
next
!=
nullptr
);
delete
head
;
head
=
next
;
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment