Skip to content

Commit

Permalink
Disable MSVC warning about struct holes
Browse files Browse the repository at this point in the history
  • Loading branch information
slipher committed May 16, 2024
1 parent a2eb584 commit c397f12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/common/Compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ inline int CountTrailingZeroes(unsigned long long x) { return __builtin_ctzll(x)
#pragma warning(disable : 4244) // 'XXX': conversion from 'YYY' to 'ZZZ', possible loss of data
#pragma warning(disable : 4267) // 'initializing' : conversion from 'size_t' to 'int', possible loss of data

#pragma warning(disable : 4324) // 'refBone_t': structure was padded due to alignment specifier

#pragma warning(disable : 4458) // declaration of 'XXX' hides class member
#pragma warning(disable : 4459) // declaration of 'XXX' hides global declaration

Expand Down

0 comments on commit c397f12

Please sign in to comment.