diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2013-05-09 17:10:06 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2013-05-09 17:10:06 +0000 |
commit | 5d564d08125526d153928adcf872ed30827de6ed (patch) | |
tree | 6f17272de93fe03a3b19ab0210814fea5ea51b71 /libtest/callbacks-example-simple.c | |
parent | 90404c36f6ce33386242c00b41ec154dce65b30a (diff) |
Fixed a bunch of warnings.
Diffstat (limited to 'libtest/callbacks-example-simple.c')
-rwxr-xr-x | libtest/callbacks-example-simple.c | 4 |
1 files changed, 4 insertions, 0 deletions
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"); |