From: Brian Paul Date: Tue, 2 Nov 2010 23:40:58 +0000 (-0600) Subject: mesa: silence new warnings in texobj.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=61f25216e3b55ee0b3c4f479da9bad3e5f0cae77;p=mesa.git 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 --- diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index f0bc447e33b..13267609614 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 +} /**