Skip to content

Commit

Permalink
disabling narrowing warning for bullet on msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
gleichdick committed Mar 19, 2021
1 parent a336830 commit 3bbc20d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tf2_bullet/include/tf2_bullet/tf2_bullet.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ inline int bullet_btInfinityMask()
}
#endif

// disable narrowing warning on msvc
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable: 4244)
#endif // _MSC_VER

namespace tf2
{
namespace impl
Expand Down Expand Up @@ -162,4 +168,9 @@ inline btTransform transformToBullet(
}
} // namespace tf2

// disabling narrowing warning, see above
#ifdef _MSC_VER
#pragma warning(pop)
#endif // _MSC_VER

#endif // TF2_BULLET__TF2_BULLET_H_

0 comments on commit 3bbc20d

Please sign in to comment.