From c515ee92e2be35a4cd47aa8d0d0b91e29186748f Mon Sep 17 00:00:00 2001 From: Etienne Renault Date: Thu, 29 Sep 2016 15:26:42 +0200 Subject: [PATCH] bricks: add missing override * bricks/brick-assert.h, bricks/brick-hashset.h, bricks/brick-shmem.h: here. --- bricks/brick-assert.h | 2 +- bricks/brick-hashset.h | 2 +- bricks/brick-shmem.h | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bricks/brick-assert.h b/bricks/brick-assert.h index 34a9ac543..3efc55951 100644 --- a/bricks/brick-assert.h +++ b/bricks/brick-assert.h @@ -132,7 +132,7 @@ struct AssertFailed : std::exception { (*this) << ": assertion `" << l.stmt << "' failed;"; } - const char *what() const noexcept { return str.c_str(); } + const char *what() const noexcept override { return str.c_str(); } }; template< typename Location, typename X > diff --git a/bricks/brick-hashset.h b/bricks/brick-hashset.h index 72a94746c..f34519112 100644 --- a/bricks/brick-hashset.h +++ b/bricks/brick-hashset.h @@ -995,7 +995,7 @@ struct Parallel int from, to; bool overlap; - void main() { + void main() override { auto set = _set->withTD( td ); for ( int i = from; i < to; ++i ) { set.insert( i ); diff --git a/bricks/brick-shmem.h b/bricks/brick-shmem.h index f7639ecbf..9dc2a62d6 100644 --- a/bricks/brick-shmem.h +++ b/bricks/brick-shmem.h @@ -551,7 +551,7 @@ struct FifoTest { int terminate; int n; - void main() + void main() override { std::vector< int > x; x.resize( n ); @@ -603,7 +603,7 @@ struct Utils { rep( repeat ) {} - void main() { + void main() override { for ( int i = 0; i < rep; ++i ) detector.waitForAll( peers ); } @@ -648,7 +648,7 @@ struct Utils { consume( 0 ) {} - void main() { + void main() override { detector.waitForAll( peers ); while ( produce-- )