From 011834c95f4ab88d87f071f61b4f05efcea1b391 Mon Sep 17 00:00:00 2001 From: Albert Cahalan Date: Tue, 23 Nov 2004 18:41:34 +0000 Subject: [PATCH] cast useless arg to void --> no warning about it --- docs/CHANGES.txt | 5 ++++- src/tuxpaint.c | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/CHANGES.txt b/docs/CHANGES.txt index f0c8f9e21..c1e2ca6f8 100644 --- a/docs/CHANGES.txt +++ b/docs/CHANGES.txt @@ -11,8 +11,11 @@ http://www.newbreedsoftware.com/tuxpaint/ * simplify strip_trailing_whitespace, now O(n) Albert Cahalan + * drawtext_callback prototype forces useless arg. void it + Albert Cahalan + 2004.November.22 (0.9.15) - * Enable more compuler warnings, and update code to prevent them. + * Enable more compiler warnings, and update code to prevent them. Albert Cahalan * Updated Hebrew translation. diff --git a/src/tuxpaint.c b/src/tuxpaint.c index d5656e8e5..7c94fb003 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -12355,6 +12355,7 @@ static void control_drawtext_timer(Uint32 interval, const char * const text) static Uint32 drawtext_callback(Uint32 interval, void *param) { + (void)interval; SDL_PushEvent((SDL_Event*)param); return 0; /* Remove timer */