Skip to content

Commit

Permalink
Check compiler is gcc before pragma GCC (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
tt4g authored and jtv committed Feb 7, 2019
1 parent 9532128 commit 89d6bcc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/pqxx/internal/ignore-deprecated-post.hxx
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
/// End a code block started by "ignore-deprecated-pre.hxx".
#if defined(__GNUC__)

#pragma GCC diagnostic pop

#endif // __GNUC__
4 changes: 4 additions & 0 deletions include/pqxx/internal/ignore-deprecated-pre.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,9 @@
* "ignore-deprecated-post.hxx". To avoid mistakes, keep the enclosed area as
* small as possible.
*/
#if defined(__GNUC__)

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"

#endif // __GNUC__

0 comments on commit 89d6bcc

Please sign in to comment.