From 61f25216e3b55ee0b3c4f479da9bad3e5f0cae77 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 2 Nov 2010 17:40:58 -0600 Subject: mesa: silence new warnings in texobj.c Silences warning such as: main/texobj.c:442:40: warning: ISO C99 requires rest arguments to be used main/texobj.c:498:58: warning: ISO C99 requires rest arguments to be used --- src/mesa/main/texobj.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/mesa/main/texobj.c') diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index f0bc447e33..1326760961 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -380,10 +380,10 @@ _mesa_reference_texobj(struct gl_texture_object **ptr, * * \note For debug purposes only. */ -#if 0 static void incomplete(const struct gl_texture_object *t, const char *fmt, ...) { +#if 0 va_list args; char s[100]; @@ -392,10 +392,8 @@ incomplete(const struct gl_texture_object *t, const char *fmt, ...) va_end(args); printf("Texture Obj %d incomplete because: %s\n", t->Name, s); -} -#else -#define incomplete(t, why, ...) #endif +} /** -- cgit v1.2.3