Skip to content

Commit

Permalink
warn fix
Browse files Browse the repository at this point in the history
arc. rev. 1013534
  • Loading branch information
Ruslan K authored and starius committed Feb 9, 2016
1 parent e757cd6 commit 7a18c94
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/pire_ut.cpp
Expand Up @@ -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 = "-->";
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 7a18c94

Please sign in to comment.