diff options
author | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2007-07-25 21:28:15 +0000 |
---|---|---|
committer | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2007-07-25 21:28:15 +0000 |
commit | d6e4128e9f2ca4f71fa1612c45f84bc45b82a5a2 (patch) | |
tree | 23aa691a9a5862f8871b0bf2a5af09127120b213 /code/qcommon | |
parent | c7f082760f432b227277b4e1e39fc88c814d2dde (diff) | |
download | ioquake3-aero-d6e4128e9f2ca4f71fa1612c45f84bc45b82a5a2.tar.gz ioquake3-aero-d6e4128e9f2ca4f71fa1612c45f84bc45b82a5a2.zip |
* Fix a few -pedantic warnings
git-svn-id: svn://svn.icculus.org/quake3/trunk@1120 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/qcommon')
-rw-r--r-- | code/qcommon/cm_patch.c | 2 | ||||
-rw-r--r-- | code/qcommon/common.c | 2 | ||||
-rw-r--r-- | code/qcommon/vm_x86.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/code/qcommon/cm_patch.c b/code/qcommon/cm_patch.c index c29a329..88e3697 100644 --- a/code/qcommon/cm_patch.c +++ b/code/qcommon/cm_patch.c @@ -1153,7 +1153,7 @@ struct patchCollide_s *CM_GeneratePatchCollide( int width, int height, vec3_t *p if ( width <= 2 || height <= 2 || !points ) { Com_Error( ERR_DROP, "CM_GeneratePatchFacets: bad parameters: (%i, %i, %p)", - width, height, points ); + width, height, (void *)points ); } if ( !(width & 1) || !(height & 1) ) { diff --git a/code/qcommon/common.c b/code/qcommon/common.c index defb5fa..3c37656 100644 --- a/code/qcommon/common.c +++ b/code/qcommon/common.c @@ -1256,7 +1256,7 @@ void Com_Meminfo_f( void ) { for (block = mainzone->blocklist.next ; ; block = block->next) { if ( Cmd_Argc() != 1 ) { Com_Printf ("block:%p size:%7i tag:%3i\n", - block, block->size, block->tag); + (void *)block, block->size, block->tag); } if ( block->tag ) { zoneBytes += block->size; diff --git a/code/qcommon/vm_x86.c b/code/qcommon/vm_x86.c index 527ee72..8b6e4a1 100644 --- a/code/qcommon/vm_x86.c +++ b/code/qcommon/vm_x86.c @@ -212,7 +212,7 @@ void callAsmCall(void) // arbitrarily named (though this is not true for the MSC version). When a vm // makes a system call, control jumps straight to the doAsmCall label. void AsmCall( void ) { - asm( CMANG(doAsmCall) ": \n\t" \ + __asm__( CMANG(doAsmCall) ": \n\t" \ " movl (%%edi),%%eax \n\t" \ " subl $4,%%edi \n\t" \ " orl %%eax,%%eax \n\t" \ |