Skip to content

Commit 73000ac

Browse files
authoredNov 29, 2021
Wrap #pragma warnings to avoid GCC compilation warnings
1 parent f4e6ac0 commit 73000ac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎Inc/DirectXMathConvert.inl

+4
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@
1717

1818
//------------------------------------------------------------------------------
1919

20+
#ifdef _MSC_VER
2021
#pragma warning(push)
2122
#pragma warning(disable:4701)
2223
// C4701: false positives
24+
#endif
2325

2426
inline XMVECTOR XM_CALLCONV XMConvertVectorIntToFloat
2527
(
@@ -218,7 +220,9 @@ inline XMVECTOR XM_CALLCONV XMConvertVectorFloatToUInt
218220
#endif
219221
}
220222

223+
#ifdef _MSC_VER
221224
#pragma warning(pop)
225+
#endif
222226

223227
/****************************************************************************
224228
*

0 commit comments

Comments
 (0)
Please sign in to comment.