summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-02-10 10:52:01 +0100
committerFlorian Pritz <bluewind@xinu.at>2012-02-10 10:54:15 +0100
commitbd961a8667c0714a8e834ee390a5d8ba9814274c (patch)
treea22a6f4cccc971280c4e7318d79132990b904de6
parent6193fd07dd2c7dd368435f46df2d4a50143914e8 (diff)
fb-helper.c: remove unused warning for callback parameters
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--fb-helper.c4
1 files changed, 3 insertions, 1 deletions
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;