diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2016-08-29 11:06:52 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2016-08-29 11:06:52 +0000 |
commit | a74e1b7a5e6b4bd91c845f2085498b9c0020d924 (patch) | |
tree | af4fb398afde15233385ac9f1a189733db09bb37 /vbench | |
parent | 1dc070cd38c1213d62ac13fc7b5258e1e2fd69c4 (diff) |
Tell gcc to avoid warning on unused-functio here. It is expected.
Diffstat (limited to 'vbench')
-rw-r--r-- | vbench/src/vbench/core/dispatcher.cpp | 2 | ||||
-rw-r--r-- | vbench/src/vbench/core/handler_thread.cpp | 2 | ||||
-rw-r--r-- | vbench/src/vbench/core/time_queue.cpp | 2 |
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 |