fix unused-function warning

This commit is contained in:
alandefreitas
2022-11-03 18:10:59 -03:00
committed by Alan de Freitas
parent ffce33d483
commit bfce6eea90
3 changed files with 39 additions and 18 deletions
+12 -10
View File
@@ -11,6 +11,14 @@
#ifndef BOOST_STATIC_STRING_STATIC_STRING_HPP
#define BOOST_STATIC_STRING_STATIC_STRING_HPP
#if defined(__GNUC__) && __GNUC__ >= 8
#pragma GCC diagnostic push // false positives
#pragma GCC system_header
#pragma GCC diagnostic ignored "-Warray-bounds"
#pragma GCC diagnostic ignored "-Wrestrict"
#pragma GCC diagnostic ignored "-Wstringop-overflow"
#endif
// External include guard
#ifndef BOOST_STATIC_STRING_CONFIG_HPP
#include <boost/static_string/config.hpp>
@@ -29,13 +37,6 @@
namespace boost {
namespace static_strings {
#if BOOST_WORKAROUND(BOOST_GCC_VERSION, >= 80000)
#pragma GCC diagnostic push // false positives
#pragma GCC diagnostic ignored "-Warray-bounds"
#pragma GCC diagnostic ignored "-Wrestrict"
#pragma GCC diagnostic ignored "-Wstringop-overflow"
#endif
#ifndef BOOST_STATIC_STRING_DOCS
template<std::size_t N, typename CharT, typename Traits>
class basic_static_string;
@@ -6565,11 +6566,12 @@ insert_unchecked(
return curr_data + index;
}
#if BOOST_WORKAROUND(BOOST_GCC_VERSION, >= 80000)
} // static_strings
} // boost
#if defined(__GNUC__) && __GNUC__ >= 8
#pragma GCC diagnostic pop
#endif
} // static_strings
} // boost
#endif
#endif