Skip to content

Commit 7004787

Browse files
authored
Merge pull request #4061 from SunBlack/fix_msvc_unknown_pragma_warning
Fix unknown pragma warning on MSVC in test_type_traits.cpp
2 parents 46984d7 + 4a0a491 commit 7004787

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/common/test_type_traits.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,14 @@ TEST (TypeTraits, HasCustomAllocatorTrait)
5353
// operators added by Eigen for C++14 or lower standards
5454
/** \todo Remove for C++17 (or future standards)
5555
*/
56+
#ifdef __clang__
5657
#pragma clang diagnostic push
5758
#pragma clang diagnostic ignored "-Wunused-local-typedef"
59+
#endif
5860
PCL_MAKE_ALIGNED_OPERATOR_NEW
61+
#ifdef __clang__
5962
#pragma clang diagnostic pop
63+
#endif
6064
};
6165

6266
struct Bar

0 commit comments

Comments
 (0)