Skip to content

Commit

Permalink
autotest/cpp: really fix warning on fedora:rawhide
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jan 16, 2025
1 parent 9616361 commit 69cc3b3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions autotest/cpp/gtest_include.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,14 @@
#pragma GCC system_header
#endif

#if defined(__GNUC__)
// Workaround https://github.com/google/googletest/issues/4701
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcpp"
#endif

#include "gtest/gtest.h"

#if defined(__GNUC__)
#pragma GCC diagnostic pop
#endif

0 comments on commit 69cc3b3

Please sign in to comment.