mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2025-03-30 22:31:34 +00:00
Some missing fixes from IOQ3
This commit is contained in:
parent
de87248d9c
commit
4d473b2f68
4 changed files with 10 additions and 6 deletions
|
@ -115,7 +115,7 @@ int mumble_link(const char* name)
|
|||
close(shmfd);
|
||||
#endif
|
||||
memset(lm, 0, sizeof(LinkedMem));
|
||||
mbstowcs(lm->name, name, sizeof(lm->name));
|
||||
mbstowcs(lm->name, name, sizeof(lm->name) / sizeof(wchar_t));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -2296,10 +2296,7 @@ A way to force a bus error for development reasons
|
|||
=================
|
||||
*/
|
||||
static void Com_Crash_f( void ) {
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wnull-dereference"
|
||||
* ( int * ) 0 = 0x12345678;
|
||||
#pragma clang diagnostic pop
|
||||
* ( volatile int * ) 0 = 0x12345678;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -706,11 +706,12 @@ int Q_isalpha( int c )
|
|||
qboolean Q_isanumber( const char *s )
|
||||
{
|
||||
char *p;
|
||||
double UNUSED_VAR d;
|
||||
|
||||
if( *s == '\0' )
|
||||
return qfalse;
|
||||
|
||||
strtod( s, &p );
|
||||
d = strtod( s, &p );
|
||||
|
||||
return *p == '\0';
|
||||
}
|
||||
|
|
|
@ -96,6 +96,12 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define UNUSED_VAR __attribute__((unused))
|
||||
#else
|
||||
#define UNUSED_VAR
|
||||
#endif
|
||||
|
||||
#if (defined _MSC_VER)
|
||||
#define Q_EXPORT __declspec(dllexport)
|
||||
#elif (defined __SUNPRO_C)
|
||||
|
|
Loading…
Reference in a new issue