mirror of
https://github.com/bkaradzic/bx.git
synced 2026-06-08 03:03:48 +00:00
MSVC: Fixed unreachable warning. (#399)
This commit is contained in:
committed by
GitHub
parent
7dc65d7eca
commit
03b5ae7112
@@ -307,8 +307,11 @@ namespace bx
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BX_PRAGMA_DIAGNOSTIC_PUSH()
|
||||||
|
BX_PRAGMA_DIAGNOSTIC_IGNORED_MSVC(4702) // warning C4702: unreachable code
|
||||||
*_out = static_cast<Ty>(_from);
|
*_out = static_cast<Ty>(_from);
|
||||||
return static_cast<FromT>(*_out) == _from;
|
return static_cast<FromT>(*_out) == _from;
|
||||||
|
BX_PRAGMA_DIAGNOSTIC_POP()
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename Ty, typename FromT>
|
template<typename Ty, typename FromT>
|
||||||
|
|||||||
Reference in New Issue
Block a user