* Fix some new GCC 4.3 warnings
* Fix many many strict aliasing warnings, now that it's re-enabled
This commit is contained in:
1 parent
7c19978aaa
commit
72dea0a184
19 files changed
+220
-152
No files matched your search
+4
-1
@@ -231,7 +231,10 @@ char *Sys_Cwd( void )
|
||||
{
|
||||
static char cwd[MAX_OSPATH];
|
||||
|
||||
getcwd( cwd, sizeof( cwd ) - 1 );
|
||||
char *result = getcwd( cwd, sizeof( cwd ) - 1 );
|
||||
if( result != cwd )
|
||||
return NULL;
|
||||
|
||||
cwd[MAX_OSPATH-1] = 0;
|
||||
|
||||
return cwd;
|
||||
|
||||
Reference in new issue
Block a user