From 5d564d08125526d153928adcf872ed30827de6ed Mon Sep 17 00:00:00 2001 From: Xavier Roche Date: Thu, 9 May 2013 17:10:06 +0000 Subject: Fixed a bunch of warnings. --- libtest/callbacks-example-simple.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libtest/callbacks-example-simple.c') diff --git a/libtest/callbacks-example-simple.c b/libtest/callbacks-example-simple.c index 42bf8cd..f481ed2 100755 --- a/libtest/callbacks-example-simple.c +++ b/libtest/callbacks-example-simple.c @@ -33,6 +33,8 @@ static int process_file(t_hts_callbackarg /*the carg structure, holding various char* html, int len, const char* url_address, const char* url_file) { void *ourDummyArg = (void*) CALLBACKARG_USERDEF(carg); /*optional user-defined arg*/ + (void) ourDummyArg; + /* call parent functions if multiple callbacks are chained. you can skip this part, if you don't want previous callbacks to be called. */ if (CALLBACKARG_PREV_FUN(carg, check_html) != NULL) { if (!CALLBACKARG_PREV_FUN(carg, check_html)(CALLBACKARG_PREV_CARG(carg), opt, @@ -49,6 +51,8 @@ static int process_file(t_hts_callbackarg /*the carg structure, holding various static int end_of_mirror(t_hts_callbackarg /*the carg structure, holding various information*/*carg, /*the option settings*/httrackp *opt) { void *ourDummyArg = (void*) CALLBACKARG_USERDEF(carg); /*optional user-defined arg*/ + (void) ourDummyArg; + /* processing */ fprintf(stderr, "That's all, folks!\n"); -- cgit v1.2.3