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:
Yaakov 2013-07-06 21:01:52 +10:00
parent 63be60408f
commit 4e4d07d7ef
2 changed files with 4 additions and 0 deletions

View file

@ -57,7 +57,9 @@ public:
{
p = new T[MAXSTUDIOBONES];
if ( ((size_t)p) % TSLIST_NODE_ALIGNMENT != 0 )
{
DebuggerBreak();
}
}
return p;

View file

@ -57,7 +57,9 @@ public:
{
p = new T[MAXSTUDIOBONES];
if ( ((size_t)p) % TSLIST_NODE_ALIGNMENT != 0 )
{
DebuggerBreak();
}
}
return p;