Skip to content

Commit f80a404

Browse files
committed
Fix -Wdeprecated-declarations warning from clang
1 parent 73a63ea commit f80a404

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

googletest/include/gtest/gtest.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,16 @@
5252
#include <cstddef>
5353
#include <cstdint>
5454
#include <limits>
55+
#ifdef __clang__
56+
#pragma clang diagnostic push
57+
// Disable the deprecated-declarations warning before the clang bug
58+
// (https://github.com/llvm/llvm-project/issues/76515) has been fixed
59+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
60+
#endif
5561
#include <memory>
62+
#ifdef __clang__
63+
#pragma clang diagnostic pop
64+
#endif
5665
#include <ostream>
5766
#include <set>
5867
#include <sstream>

0 commit comments

Comments
 (0)