Skip to content

Commit

Permalink
Disable -Wrestrict in pm_to_string.cpp for GCC 12
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Jun 21, 2022
1 parent ccfed27 commit c8c46bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions example/pm_to_string.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt

#if defined(__GNUC__) && __GNUC__ == 12
# pragma GCC diagnostic ignored "-Wrestrict" // false positive
#endif

#include <boost/describe.hpp>
#include <boost/mp11.hpp>
#include <boost/core/type_name.hpp>
Expand Down

0 comments on commit c8c46bf

Please sign in to comment.