From: divverent Date: Thu, 20 Aug 2009 07:51:23 +0000 (+0000) Subject: shut up jpeg warnings another way X-Git-Tag: xonotic-v0.1.0preview~1494 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=feb18a6123f6d5092c9f778ece3d7eddee335834;p=xonotic%2Fdarkplaces.git shut up jpeg warnings another way git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9135 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/jpeg.c b/jpeg.c index bdcfdc40..c08cecb2 100644 --- a/jpeg.c +++ b/jpeg.c @@ -99,25 +99,23 @@ typedef unsigned int JDIMENSION; #define C_MAX_BLOCKS_IN_MCU 10 #define D_MAX_BLOCKS_IN_MCU 10 -#pragma GCC diagnostic ignored "-Wstrict-prototypes" struct jpeg_memory_mgr { void* (*alloc_small) (j_common_ptr cinfo, int pool_id, size_t sizeofobject); - void (*alloc_large) (); - void (*alloc_sarray) (); - void (*alloc_barray) (); - void (*request_virt_sarray) (); - void (*request_virt_barray) (); - void (*realize_virt_arrays) (); - void (*access_virt_sarray) (); - void (*access_virt_barray) (); - void (*free_pool) (); - void (*self_destruct) (); + void (*alloc_large) (void *dummy, ...); + void (*alloc_sarray) (void *dummy, ...); + void (*alloc_barray) (void *dummy, ...); + void (*request_virt_sarray) (void *dummy, ...); + void (*request_virt_barray) (void *dummy, ...); + void (*realize_virt_arrays) (void *dummy, ...); + void (*access_virt_sarray) (void *dummy, ...); + void (*access_virt_barray) (void *dummy, ...); + void (*free_pool) (void *dummy, ...); + void (*self_destruct) (void *dummy, ...); long max_memory_to_use; long max_alloc_chunk; }; -#pragma GCC diagnostic warning "-Wstrict-prototypes" struct jpeg_error_mgr {