From bd961a8667c0714a8e834ee390a5d8ba9814274c Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 10 Feb 2012 10:52:01 +0100 Subject: fb-helper.c: remove unused warning for callback parameters Signed-off-by: Florian Pritz --- fb-helper.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fb-helper.c b/fb-helper.c index f8fe70e..560e1e0 100644 --- a/fb-helper.c +++ b/fb-helper.c @@ -29,6 +29,8 @@ #define FORMAT_TIME_BUFFER 32 #define SAMPLE_COUNT 15 +#define UNUSED __attribute__((unused)) + struct sample { size_t size; double time; @@ -119,7 +121,7 @@ void format_time(char *buf, int bufsize, time_t time) int progress_callback( void *cb_data, - double dltotal, double dlnow, + double UNUSED dltotal, double UNUSED dlnow, double ultotal, double ulnow ){ struct timeval now; -- cgit v1.2.3-24-g4f1b