From 7a18c94a62e94c554f6bb1677472aa8102343e46 Mon Sep 17 00:00:00 2001 From: Ruslan K Date: Thu, 16 May 2013 20:11:37 +0400 Subject: [PATCH] warn fix arc. rev. 1013534 --- tests/pire_ut.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/pire_ut.cpp b/tests/pire_ut.cpp index 95a1a2cf..1d91776d 100644 --- a/tests/pire_ut.cpp +++ b/tests/pire_ut.cpp @@ -287,6 +287,8 @@ SIMPLE_UNIT_TEST(Reverse) } } +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Warray-bounds" SIMPLE_UNIT_TEST(PrefixSuffix) { static const char* pattern = "-->"; @@ -316,6 +318,7 @@ SIMPLE_UNIT_TEST(PrefixSuffix) begin = Pire::ShortestSuffix(rsc, end - 1, text - 1) + 1; UNIT_ASSERT_EQUAL(begin, text + 11); } +#pragma GCC diagnostic pop namespace { ssize_t LongestPrefixLen(const char* pattern, const char* str)