mirror of
https://github.com/kennethreitz/static_string.git
synced 2026-06-05 23:00:20 +00:00
fix noexcept-type warning
This commit is contained in:
committed by
Alan de Freitas
parent
bfce6eea90
commit
0c914ff05b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user