Commit 0ba44759 authored by Etienne Renault's avatar Etienne Renault
Browse files

bricks: fix clang warnings

* bricks/brick-hash.h, bricks/brick-shmem.h: here.
parent cef5120a
...@@ -800,7 +800,7 @@ struct Jenkins { ...@@ -800,7 +800,7 @@ struct Jenkins {
saw[i] = SpookyHash::Hash32(buf, i, 0); saw[i] = SpookyHash::Hash32(buf, i, 0);
if (saw[i] != expected[i]) 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 ); ASSERT( false );
} }
} }
......
...@@ -369,7 +369,7 @@ protected: ...@@ -369,7 +369,7 @@ protected:
Node *next; Node *next;
Node() { Node() {
read = write = buffer; read = write = buffer;
next = 0; next = nullptr;
} }
}; };
...@@ -393,7 +393,7 @@ public: ...@@ -393,7 +393,7 @@ public:
~Fifo() { ~Fifo() {
while ( head != tail ) { while ( head != tail ) {
Node *next = head->next; Node *next = head->next;
ASSERT( next != 0 ); ASSERT( next != nullptr );
delete head; delete head;
head = next; head = next;
} }
......
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