summaryrefslogtreecommitdiffstats
path: root/vbench
diff options
context:
space:
mode:
Diffstat (limited to 'vbench')
-rw-r--r--vbench/src/vbench/core/dispatcher.cpp2
-rw-r--r--vbench/src/vbench/core/handler_thread.cpp2
-rw-r--r--vbench/src/vbench/core/time_queue.cpp2
3 files changed, 6 insertions, 0 deletions
diff --git a/vbench/src/vbench/core/dispatcher.cpp b/vbench/src/vbench/core/dispatcher.cpp
index b787ad2ae9f..82c35322ad7 100644
--- a/vbench/src/vbench/core/dispatcher.cpp
+++ b/vbench/src/vbench/core/dispatcher.cpp
@@ -1,6 +1,7 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/fastos/fastos.h>
+#pragma GCC diagnostic ignored "-Wunused-function" // This dirty one is due a suspected bug in gcc 6.2
#include "dispatcher.h"
namespace vbench {
@@ -14,3 +15,4 @@ struct DummyItem {};
template class Dispatcher<DummyItem>;
} // namespace vbench
+#pragma GCC diagnostic pop
diff --git a/vbench/src/vbench/core/handler_thread.cpp b/vbench/src/vbench/core/handler_thread.cpp
index d0333327c79..ca4aaccc7a5 100644
--- a/vbench/src/vbench/core/handler_thread.cpp
+++ b/vbench/src/vbench/core/handler_thread.cpp
@@ -1,6 +1,7 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/fastos/fastos.h>
+#pragma GCC diagnostic ignored "-Wunused-function" // This dirty one is due a suspected bug in gcc 6.2
#include "handler_thread.h"
namespace vbench {
@@ -14,3 +15,4 @@ struct DummyItem {};
template class HandlerThread<DummyItem>;
} // namespace vbench
+#pragma GCC diagnostic pop
diff --git a/vbench/src/vbench/core/time_queue.cpp b/vbench/src/vbench/core/time_queue.cpp
index a207b91a7c6..ab6e4691b97 100644
--- a/vbench/src/vbench/core/time_queue.cpp
+++ b/vbench/src/vbench/core/time_queue.cpp
@@ -1,6 +1,7 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/fastos/fastos.h>
+#pragma GCC diagnostic ignored "-Wunused-function" // This dirty one is due a suspected bug in gcc 6.2
#include "time_queue.h"
namespace vbench {
@@ -14,3 +15,4 @@ struct DummyItem {};
template class TimeQueue<DummyItem>;
} // namespace vbench
+#pragma GCC diagnostic pop