summaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/grouping
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2023-01-30 21:27:38 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2023-01-30 21:27:38 +0000
commitd793a7914ff5cdd6ed8aba9b633fc7bb13067698 (patch)
tree14efe41d6c714e4f811f58629fcd266e4b3f91e6 /searchlib/src/tests/grouping
parentf50103b7c5f4702c2d8fa7b4f2963f633ea9d54a (diff)
GC some compiler pragmas not needed.
Diffstat (limited to 'searchlib/src/tests/grouping')
-rw-r--r--searchlib/src/tests/grouping/sketch_test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/searchlib/src/tests/grouping/sketch_test.cpp b/searchlib/src/tests/grouping/sketch_test.cpp
index 10f5cbaa8ef..f8f5b79af75 100644
--- a/searchlib/src/tests/grouping/sketch_test.cpp
+++ b/searchlib/src/tests/grouping/sketch_test.cpp
@@ -1,15 +1,15 @@
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
// Unit tests for sketch.
-#include <vespa/log/log.h>
-LOG_SETUP("sketch_test");
-
#include <vespa/searchlib/grouping/sketch.h>
#include <vespa/vespalib/objects/nboserializer.h>
#include <vespa/vespalib/objects/nbostream.h>
#include <vespa/vespalib/testkit/testapp.h>
#include <vespa/vespalib/util/stringfmt.h>
+#include <vespa/log/log.h>
+LOG_SETUP("sketch_test");
+
using vespalib::NBOSerializer;
using vespalib::nbostream;
using namespace search;
@@ -28,10 +28,10 @@ template <typename NormalSketch>
void checkBucketValue(NormalSketch &sketch, size_t bucket, uint32_t value) {
#pragma GCC diagnostic push
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 11 || __GNUC__ <= 12)
+//TODO Remove when compiler bug has been fixed...
#pragma GCC diagnostic ignored "-Warray-bounds"
#endif
EXPECT_EQUAL(value, static_cast<size_t>(sketch.bucket[bucket]));
-#pragma GCC diagnostic pop
}
template <int BucketBits, typename HashT>