HLLib: always initialize file access mode variable
Fixes the warning appearing thanks to -Wuninitialized.
This commit is contained in:
parent
f5a28b2729
commit
d2fdc13491
|
@ -132,7 +132,7 @@ hlBool CFileMapping::OpenInternal(hlUInt uiMode)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
hlInt iMode;
|
hlInt iMode = 0;
|
||||||
|
|
||||||
if((uiMode & HL_MODE_READ) && (uiMode & HL_MODE_WRITE))
|
if((uiMode & HL_MODE_READ) && (uiMode & HL_MODE_WRITE))
|
||||||
{
|
{
|
||||||
|
|
|
@ -82,7 +82,7 @@ hlBool CFileStream::Open(hlUInt uiMode)
|
||||||
return hlFalse;
|
return hlFalse;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
hlInt iMode;
|
hlInt iMode = 0;
|
||||||
|
|
||||||
if((uiMode & HL_MODE_READ) && (uiMode & HL_MODE_WRITE))
|
if((uiMode & HL_MODE_READ) && (uiMode & HL_MODE_WRITE))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue