* Fix a few -pedantic warnings

This commit is contained in:
Tim Angus 2007-07-25 21:28:15 +00:00
parent e8bbb1f2d1
commit 0c99c0c1d2
5 changed files with 5 additions and 5 deletions

View File

@ -85,7 +85,7 @@ void CL_StartHunkUsers( void ) {
}
// bk001119 - added new dummy for sv_init.c
void CL_ShutdownAll(void) {};
void CL_ShutdownAll(void) {}
// bk001208 - added new dummy (RC4)
qboolean CL_CDKeyValidate( const char *key, const char *checksum ) { return qtrue; }

View File

@ -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) ) {

View File

@ -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;

View File

@ -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" \

View File

@ -27,7 +27,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "../renderer/tr_local.h"
#endif
static qboolean signalcaught = qfalse;;
static qboolean signalcaught = qfalse;
void Sys_Exit(int); // bk010104 - abstraction