aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks
diff options
context:
space:
mode:
authorYi Kong <yikong@google.com>2019-03-29 14:25:16 -0700
committerYi Kong <yikong@google.com>2019-03-29 14:27:27 -0700
commit358603a40908415d5fe780f9321ba7d6b9941638 (patch)
tree4485083508172c6474755333b0edd99ad7c7da0f /benchmarks
parent3e742cb6133ad37ce28e8f0bffdf70f763ed45a3 (diff)
downloadandroid_bionic-358603a40908415d5fe780f9321ba7d6b9941638.tar.gz
android_bionic-358603a40908415d5fe780f9321ba7d6b9941638.tar.bz2
android_bionic-358603a40908415d5fe780f9321ba7d6b9941638.zip
Modernise code to use override specifier
Generated by clang-tidy. Test: m checkbuild Change-Id: I8e23da6b8af31b291be2eefe9937ca222ea8a8c3
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/semaphore_benchmark.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmarks/semaphore_benchmark.cpp b/benchmarks/semaphore_benchmark.cpp
index ba891370b..cf5148983 100644
--- a/benchmarks/semaphore_benchmark.cpp
+++ b/benchmarks/semaphore_benchmark.cpp
@@ -80,7 +80,7 @@ static void* BM_semaphore_sem_post_start_thread(void* arg) {
class SemaphoreFixture : public benchmark::Fixture {
public:
- void SetUp(const benchmark::State&) {
+ void SetUp(const benchmark::State&) override {
sem_init(&semaphore, 0, 0);
pthread_attr_t attr;
@@ -100,7 +100,7 @@ class SemaphoreFixture : public benchmark::Fixture {
setup = true;
}
- ~SemaphoreFixture() {
+ ~SemaphoreFixture() override {
if (setup) {
// Only do this if the test was actually run.
sched_setscheduler(0, SCHED_OTHER, &param);