fix noexcept-type warning

This commit is contained in:
alandefreitas
2022-11-04 02:51:02 -03:00
committed by Alan de Freitas
parent bfce6eea90
commit 0c914ff05b
2 changed files with 13 additions and 2 deletions
+12 -1
View File
@@ -12,13 +12,19 @@
#define BOOST_STATIC_STRING_STATIC_STRING_HPP
#if defined(__GNUC__) && __GNUC__ >= 8
#pragma GCC diagnostic push // false positives
#pragma GCC diagnostic push
#pragma GCC system_header
// false positives
#pragma GCC diagnostic ignored "-Warray-bounds"
#pragma GCC diagnostic ignored "-Wrestrict"
#pragma GCC diagnostic ignored "-Wstringop-overflow"
#endif
#if defined(__GNUC__) && __GNUC__ >= 7
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wnoexcept-type"
#endif
// External include guard
#ifndef BOOST_STATIC_STRING_CONFIG_HPP
#include <boost/static_string/config.hpp>
@@ -6569,9 +6575,14 @@ insert_unchecked(
} // static_strings
} // boost
#if defined(__GNUC__) && __GNUC__ >= 7
#pragma GCC diagnostic pop
#endif
#if defined(__GNUC__) && __GNUC__ >= 8
#pragma GCC diagnostic pop
#endif
#endif
#endif