mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-02-17 09:31:42 +00:00
Fixed compiler warning in bone_setup: add explicit braces to avoid dangling else [-Wdangling-else]
Building on Mac OS X 10.8.4, Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn) REDACTED/mp/src/game/server/../../public/bone_setup.cpp:60:60: warning: add explicit braces to avoid dangling else [-Wdangling-else] if ( Plat_IsInDebugSession() ) { __asm ( "int $3" ); } else { raise(5); }; ^
This commit is contained in:
parent
63be60408f
commit
4e4d07d7ef
2 changed files with 4 additions and 0 deletions
|
@ -57,7 +57,9 @@ public:
|
|||
{
|
||||
p = new T[MAXSTUDIOBONES];
|
||||
if ( ((size_t)p) % TSLIST_NODE_ALIGNMENT != 0 )
|
||||
{
|
||||
DebuggerBreak();
|
||||
}
|
||||
}
|
||||
|
||||
return p;
|
||||
|
|
|
@ -57,7 +57,9 @@ public:
|
|||
{
|
||||
p = new T[MAXSTUDIOBONES];
|
||||
if ( ((size_t)p) % TSLIST_NODE_ALIGNMENT != 0 )
|
||||
{
|
||||
DebuggerBreak();
|
||||
}
|
||||
}
|
||||
|
||||
return p;
|
||||
|
|
Loading…
Reference in a new issue