mirror of
https://github.com/boostorg/static_string.git
synced 2026-01-26 00:22:20 +01:00
fix unused-function warning
This commit is contained in:
committed by
Alan de Freitas
parent
ffce33d483
commit
bfce6eea90
@@ -899,6 +899,11 @@ testClear()
|
||||
BOOST_TEST(*s.end() == 0);
|
||||
}
|
||||
|
||||
#if defined(__GNUC__) && __GNUC__ >= 8
|
||||
#pragma GCC diagnostic push // false positives
|
||||
#pragma GCC diagnostic ignored "-Wstringop-overflow"
|
||||
#endif
|
||||
|
||||
// done
|
||||
static
|
||||
void
|
||||
@@ -1642,6 +1647,10 @@ testInsert()
|
||||
BOOST_TEST(testI(S("abcdefghijklmnopqrst"), 21, "12345678901234567890", 20, S("can't happen")));
|
||||
}
|
||||
|
||||
#if defined(__GNUC__) && __GNUC__ >= 8
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
// done
|
||||
static
|
||||
void
|
||||
@@ -5818,6 +5827,11 @@ testFind()
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#if defined(__GNUC__) && __GNUC__ >= 8
|
||||
#pragma GCC diagnostic push // false positives
|
||||
#pragma GCC diagnostic ignored "-Wstringop-overflow"
|
||||
#endif
|
||||
|
||||
// done
|
||||
void
|
||||
testReplace()
|
||||
@@ -6822,6 +6836,10 @@ testReplace()
|
||||
BOOST_TEST_THROWS(T("aaaaa").replace(0, 1, S("bbbbbbbbbbbbb")), std::length_error);
|
||||
}
|
||||
|
||||
#if defined(__GNUC__) && __GNUC__ >= 8
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
// done
|
||||
void
|
||||
testSubstr()
|
||||
@@ -7253,4 +7271,5 @@ int
|
||||
main()
|
||||
{
|
||||
return boost::static_strings::runTests();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user