From a74e1b7a5e6b4bd91c845f2085498b9c0020d924 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Mon, 29 Aug 2016 11:06:52 +0000 Subject: Tell gcc to avoid warning on unused-functio here. It is expected. --- vbench/src/vbench/core/dispatcher.cpp | 2 ++ vbench/src/vbench/core/handler_thread.cpp | 2 ++ vbench/src/vbench/core/time_queue.cpp | 2 ++ 3 files changed, 6 insertions(+) (limited to 'vbench/src') 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 +#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; } // 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 +#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; } // 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 +#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; } // namespace vbench +#pragma GCC diagnostic pop -- cgit v1.2.3