mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
Corrected the use of #pragma warning()
We should use #pragma warning(push/pop) instead of (default: X)
This commit is contained in:
parent
ff3d72747e
commit
e7eab10ad5
1 changed files with 2 additions and 2 deletions
|
|
@ -76,6 +76,7 @@
|
||||||
|
|
||||||
|
|
||||||
// Disable some VC warnings that are irrelevant to us.
|
// Disable some VC warnings that are irrelevant to us.
|
||||||
|
#pragma warning( push )
|
||||||
#pragma warning( disable : 4510 ) // default constructor could not be generated; all the Args structures are never constructed by us
|
#pragma warning( disable : 4510 ) // default constructor could not be generated; all the Args structures are never constructed by us
|
||||||
#pragma warning( disable : 4610 ) // can never be instantiated; again Args is never constructed by us
|
#pragma warning( disable : 4610 ) // can never be instantiated; again Args is never constructed by us
|
||||||
|
|
||||||
|
|
@ -2788,7 +2789,6 @@ struct _EngineConsoleCallbackHelper
|
||||||
|
|
||||||
|
|
||||||
// Re-enable some VC warnings we disabled for this file.
|
// Re-enable some VC warnings we disabled for this file.
|
||||||
#pragma warning( default : 4510 )
|
#pragma warning( pop ) // 4510 and 4610
|
||||||
#pragma warning( default : 4610 )
|
|
||||||
|
|
||||||
#endif // !_ENGINEAPI_H_
|
#endif // !_ENGINEAPI_H_
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue