Skip to content

Commit

Permalink
Merge pull request #4061 from SunBlack/fix_msvc_unknown_pragma_warning
Browse files Browse the repository at this point in the history
Fix unknown pragma warning on MSVC in test_type_traits.cpp
  • Loading branch information
kunaltyagi authored Jun 16, 2020
2 parents 46984d7 + 4a0a491 commit 7004787
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/common/test_type_traits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,14 @@ TEST (TypeTraits, HasCustomAllocatorTrait)
// operators added by Eigen for C++14 or lower standards
/** \todo Remove for C++17 (or future standards)
*/
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-local-typedef"
#endif
PCL_MAKE_ALIGNED_OPERATOR_NEW
#ifdef __clang__
#pragma clang diagnostic pop
#endif
};

struct Bar
Expand Down

0 comments on commit 7004787

Please sign in to comment.