Skip to content

Commit

Permalink
Disable -Wdeprecated-declarations for GCC 12
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed May 30, 2022
1 parent f7e42dc commit e665d1e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/std_bind_cxx98.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
# endif
#endif

#if defined(__GNUC__) && __GNUC__ >= 12
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif

#include <boost/function.hpp>
#include <iostream>
#include <functional>
Expand Down
4 changes: 4 additions & 0 deletions test/std_bind_portable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
# endif
#endif

#if defined(__GNUC__) && __GNUC__ >= 12
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif

#include <boost/function.hpp>
#include <iostream>
#include <functional>
Expand Down

0 comments on commit e665d1e

Please sign in to comment.