aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-10-29 18:04:04 +0100
committerChristian Grothoff <christian@grothoff.org>2019-10-29 20:57:18 +0100
commit2696688aa31bd058ebff6610660d7e6d607c6e50 (patch)
tree41c0b34d966fe0768abc92007e6b5205a0644bc2
parent36efe024f55c3373344170f077b984f678aa4269 (diff)
downloadexchange-2696688aa31bd058ebff6610660d7e6d607c6e50.tar.gz
exchange-2696688aa31bd058ebff6610660d7e6d607c6e50.zip
fix compiler warnings
-rw-r--r--src/bank-lib/fakebank.c25
-rw-r--r--src/bank-lib/fakebank_history.c1
-rw-r--r--src/bank-lib/taler-fakebank-run.c7
-rw-r--r--src/bank-lib/testing_api_cmd_history.c137
-rw-r--r--src/bank-lib/testing_api_cmd_reject.c57
-rw-r--r--src/exchange/taler-exchange-aggregator.c30
-rw-r--r--src/exchange/taler-exchange-httpd.c19
-rw-r--r--src/exchange/taler-exchange-httpd_keystate.c14
-rw-r--r--src/exchangedb/exchangedb_auditorkeys.c10
-rw-r--r--src/exchangedb/exchangedb_denomkeys.c6
-rw-r--r--src/exchangedb/plugin_exchangedb_common.c2
-rw-r--r--src/exchangedb/plugin_exchangedb_postgres.c44
-rw-r--r--src/include/taler_testing_bank_lib.h7
-rw-r--r--src/wire-plugins/plugin_wire_ebics.c33
-rw-r--r--src/wire-plugins/plugin_wire_template.c37
15 files changed, 289 insertions, 140 deletions
diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c
index 4323afdc3..94e2e8d78 100644
--- a/src/bank-lib/fakebank.c
+++ b/src/bank-lib/fakebank.c
@@ -367,7 +367,9 @@ handle_mhd_completion_callback (void *cls,
367 enum MHD_RequestTerminationCode toe) 367 enum MHD_RequestTerminationCode toe)
368{ 368{
369 /* struct TALER_FAKEBANK_Handle *h = cls; */ 369 /* struct TALER_FAKEBANK_Handle *h = cls; */
370 370 (void) cls;
371 (void) connection;
372 (void) toe;
371 GNUNET_JSON_post_parser_cleanup (*con_cls); 373 GNUNET_JSON_post_parser_cleanup (*con_cls);
372 *con_cls = NULL; 374 *con_cls = NULL;
373} 375}
@@ -607,6 +609,8 @@ handle_home_page (struct TALER_FAKEBANK_Handle *h,
607 struct MHD_Response *resp; 609 struct MHD_Response *resp;
608#define HELLOMSG "Hello, Fakebank!" 610#define HELLOMSG "Hello, Fakebank!"
609 611
612 (void) h;
613 (void) con_cls;
610 resp = MHD_create_response_from_buffer 614 resp = MHD_create_response_from_buffer
611 (strlen (HELLOMSG), 615 (strlen (HELLOMSG),
612 HELLOMSG, 616 HELLOMSG,
@@ -640,8 +644,10 @@ handle_history (struct TALER_FAKEBANK_Handle *h,
640 const char *delta; 644 const char *delta;
641 struct Transaction *pos; 645 struct Transaction *pos;
642 646
643 if (GNUNET_OK != TFH_parse_history_common_args (connection, 647 (void) con_cls;
644 &ha)) 648 if (GNUNET_OK !=
649 TFH_parse_history_common_args (connection,
650 &ha))
645 { 651 {
646 GNUNET_break (0); 652 GNUNET_break (0);
647 return MHD_NO; 653 return MHD_NO;
@@ -666,9 +672,10 @@ handle_history (struct TALER_FAKEBANK_Handle *h,
666 ha.range = &hri; 672 ha.range = &hri;
667 673
668 if (NULL == start) 674 if (NULL == start)
675 {
669 pos = 0 > hri.count ? 676 pos = 0 > hri.count ?
670 h->transactions_tail : h->transactions_head; 677 h->transactions_tail : h->transactions_head;
671 678 }
672 else if (NULL != h->transactions_head) 679 else if (NULL != h->transactions_head)
673 { 680 {
674 for (pos = h->transactions_head; 681 for (pos = h->transactions_head;
@@ -727,8 +734,10 @@ handle_history_range (struct TALER_FAKEBANK_Handle *h,
727 long long unsigned int end_stamp; 734 long long unsigned int end_stamp;
728 struct Transaction *pos; 735 struct Transaction *pos;
729 736
730 if (GNUNET_OK != TFH_parse_history_common_args (connection, 737 (void) con_cls;
731 &ha)) 738 if (GNUNET_OK !=
739 TFH_parse_history_common_args (connection,
740 &ha))
732 { 741 {
733 GNUNET_break (0); 742 GNUNET_break (0);
734 return MHD_NO; 743 return MHD_NO;
@@ -771,6 +780,7 @@ handle_history_range (struct TALER_FAKEBANK_Handle *h,
771 &TFH_handle_history_range_advance); 780 &TFH_handle_history_range_advance);
772} 781}
773 782
783
774/** 784/**
775 * Handle incoming HTTP request. 785 * Handle incoming HTTP request.
776 * 786 *
@@ -796,11 +806,10 @@ handle_mhd_request (void *cls,
796{ 806{
797 struct TALER_FAKEBANK_Handle *h = cls; 807 struct TALER_FAKEBANK_Handle *h = cls;
798 808
809 (void) version;
799 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 810 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
800 "Fakebank, serving: %s\n", 811 "Fakebank, serving: %s\n",
801 url); 812 url);
802
803
804 if ( (0 == strcasecmp (url, 813 if ( (0 == strcasecmp (url,
805 "/")) && 814 "/")) &&
806 (0 == strcasecmp (method, 815 (0 == strcasecmp (method,
diff --git a/src/bank-lib/fakebank_history.c b/src/bank-lib/fakebank_history.c
index b1770bb85..2ad363b49 100644
--- a/src/bank-lib/fakebank_history.c
+++ b/src/bank-lib/fakebank_history.c
@@ -130,6 +130,7 @@ struct Transaction *
130TFH_handle_history_range_skip (const struct HistoryArgs *ha, 130TFH_handle_history_range_skip (const struct HistoryArgs *ha,
131 const struct Transaction *pos) 131 const struct Transaction *pos)
132{ 132{
133 (void) ha;
133 /* Transactions 134 /* Transactions
134 * are stored from "head"/older to "tail"/younger. */ 135 * are stored from "head"/older to "tail"/younger. */
135 return pos->next; 136 return pos->next;
diff --git a/src/bank-lib/taler-fakebank-run.c b/src/bank-lib/taler-fakebank-run.c
index 51d054bca..2ed21d52d 100644
--- a/src/bank-lib/taler-fakebank-run.c
+++ b/src/bank-lib/taler-fakebank-run.c
@@ -43,11 +43,13 @@ run (void *cls,
43 const char *cfgfile, 43 const char *cfgfile,
44 const struct GNUNET_CONFIGURATION_Handle *cfg) 44 const struct GNUNET_CONFIGURATION_Handle *cfg)
45{ 45{
46 46 (void) cls;
47 (void) args;
48 (void) cfgfile;
49 (void) cfg;
47 if (NULL == TALER_FAKEBANK_start (8082)) 50 if (NULL == TALER_FAKEBANK_start (8082))
48 ret = 1; 51 ret = 1;
49 ret = 0; 52 ret = 0;
50
51} 53}
52 54
53 55
@@ -74,6 +76,5 @@ main (int argc,
74 &run, 76 &run,
75 NULL)) 77 NULL))
76 return 1; 78 return 1;
77
78 return ret; 79 return ret;
79} 80}
diff --git a/src/bank-lib/testing_api_cmd_history.c b/src/bank-lib/testing_api_cmd_history.c
index e69cd7c1a..ca8613141 100644
--- a/src/bank-lib/testing_api_cmd_history.c
+++ b/src/bank-lib/testing_api_cmd_history.c
@@ -64,9 +64,9 @@ struct HistoryState
64 /** 64 /**
65 * How many rows we want in the result, _at most_. In 65 * How many rows we want in the result, _at most_. In
66 * the case of /history-range, we fake this value with 66 * the case of /history-range, we fake this value with
67 * INT64_MAX. 67 * UINT64_MAX.
68 */ 68 */
69 long long num_results; 69 unsigned long long num_results;
70 70
71 /** 71 /**
72 * Handle to a pending "history" operation. 72 * Handle to a pending "history" operation.
@@ -159,6 +159,10 @@ history_traits (void *cls,
159 const char *trait, 159 const char *trait,
160 unsigned int index) 160 unsigned int index)
161{ 161{
162 (void) cls;
163 (void) ret;
164 (void) trait;
165 (void) index;
162 /* Must define this function because some callbacks 166 /* Must define this function because some callbacks
163 * look for certain traits on _all_ the commands. */ 167 * look for certain traits on _all_ the commands. */
164 return GNUNET_SYSERR; 168 return GNUNET_SYSERR;
@@ -184,7 +188,7 @@ test_cancelled (struct TALER_TESTING_Interpreter *is,
184 current_cmd = &is->commands[off]; 188 current_cmd = &is->commands[off];
185 TALER_LOG_INFO ("Is `%s' rejected?\n", 189 TALER_LOG_INFO ("Is `%s' rejected?\n",
186 current_cmd->label); 190 current_cmd->label);
187 for (unsigned int i = 0; i<is->ip; i++) 191 for (int i = 0; i<is->ip; i++)
188 { 192 {
189 const struct TALER_TESTING_Command *c = &is->commands[i]; 193 const struct TALER_TESTING_Command *c = &is->commands[i];
190 194
@@ -290,13 +294,10 @@ build_history_hit_limit (uint64_t total,
290 TALER_TESTING_get_trait_absolute_time (pos, 294 TALER_TESTING_get_trait_absolute_time (pos,
291 0, 295 0,
292 &timestamp)); 296 &timestamp));
293
294 GNUNET_assert (GNUNET_TIME_UNIT_FOREVER_ABS.abs_value_us != 297 GNUNET_assert (GNUNET_TIME_UNIT_FOREVER_ABS.abs_value_us !=
295 hs->end_date.abs_value_us); 298 hs->end_date.abs_value_us);
296
297 return timestamp->abs_value_us >= hs->end_date.abs_value_us; 299 return timestamp->abs_value_us >= hs->end_date.abs_value_us;
298 } 300 }
299
300 return total >= hs->num_results; 301 return total >= hs->num_results;
301} 302}
302 303
@@ -714,6 +715,7 @@ compute_result_count (struct TALER_TESTING_Interpreter *is)
714 return total; 715 return total;
715} 716}
716 717
718
717/** 719/**
718 * Check that the "/history" response matches the 720 * Check that the "/history" response matches the
719 * CMD whose offset in the list of CMDs is @a off. 721 * CMD whose offset in the list of CMDs is @a off.
@@ -807,6 +809,7 @@ history_cb (void *cls,
807 struct TALER_TESTING_Interpreter *is = cls; 809 struct TALER_TESTING_Interpreter *is = cls;
808 struct HistoryState *hs = is->commands[is->ip].cls; 810 struct HistoryState *hs = is->commands[is->ip].cls;
809 811
812 (void) row_id;
810 /*NOTE: "204 No Content" is used to signal the end of results.*/ 813 /*NOTE: "204 No Content" is used to signal the end of results.*/
811 if (MHD_HTTP_NO_CONTENT == http_status) 814 if (MHD_HTTP_NO_CONTENT == http_status)
812 { 815 {
@@ -819,16 +822,19 @@ history_cb (void *cls,
819 822
820 GNUNET_break (0); 823 GNUNET_break (0);
821 total = build_history (is, &h); 824 total = build_history (is, &h);
822 GNUNET_log 825 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
823 (GNUNET_ERROR_TYPE_ERROR, 826 "Expected history of length %llu, got %llu;"
824 "Expected history of length %llu, got %llu;" 827 " HTTP status code: %u/%d, failed: %d\n",
825 " HTTP status code: %u, failed: %d\n", 828 (unsigned long long) total,
826 (unsigned long long) total, 829 (unsigned long long) hs->results_obtained,
827 (unsigned long long) hs->results_obtained, 830 http_status,
828 http_status, 831 (int) ec,
829 hs->failed); 832 hs->failed);
830 print_expected (h, total, UINT_MAX); 833 print_expected (h,
831 free_history (h, total); 834 total,
835 UINT_MAX);
836 free_history (h,
837 total);
832 TALER_TESTING_interpreter_fail (is); 838 TALER_TESTING_interpreter_fail (is);
833 return; 839 return;
834 } 840 }
@@ -839,10 +845,9 @@ history_cb (void *cls,
839 if (MHD_HTTP_OK != http_status) 845 if (MHD_HTTP_OK != http_status)
840 { 846 {
841 hs->hh = NULL; 847 hs->hh = NULL;
842 GNUNET_log 848 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
843 (GNUNET_ERROR_TYPE_ERROR, 849 "Unwanted response code from /history[-range]: %u\n",
844 "Unwanted response code from /history[-range]: %u\n", 850 http_status);
845 http_status);
846 TALER_TESTING_interpreter_fail (is); 851 TALER_TESTING_interpreter_fail (is);
847 return; 852 return;
848 } 853 }
@@ -892,6 +897,7 @@ history_run (void *cls,
892 const uint64_t *row_id_ptr = &row_id; 897 const uint64_t *row_id_ptr = &row_id;
893 struct TALER_BANK_AuthenticationData *auth; 898 struct TALER_BANK_AuthenticationData *auth;
894 899
900 (void) cmd;
895 /* Get row_id from trait. */ 901 /* Get row_id from trait. */
896 if (NULL != hs->start_row_reference) 902 if (NULL != hs->start_row_reference)
897 { 903 {
@@ -940,15 +946,14 @@ history_range_run (void *cls,
940 const struct TALER_TESTING_Command *cmd, 946 const struct TALER_TESTING_Command *cmd,
941 struct TALER_TESTING_Interpreter *is) 947 struct TALER_TESTING_Interpreter *is)
942{ 948{
943
944 struct HistoryState *hs = cls; 949 struct HistoryState *hs = cls;
945 const struct GNUNET_TIME_Absolute *start_date; 950 const struct GNUNET_TIME_Absolute *start_date;
946 const struct GNUNET_TIME_Absolute *end_date; 951 const struct GNUNET_TIME_Absolute *end_date;
947 struct TALER_BANK_AuthenticationData *auth; 952 struct TALER_BANK_AuthenticationData *auth;
948 953
954 (void) cmd;
949 if (NULL != hs->start_row_reference) 955 if (NULL != hs->start_row_reference)
950 { 956 {
951
952 const struct TALER_TESTING_Command *history_cmd; 957 const struct TALER_TESTING_Command *history_cmd;
953 958
954 history_cmd = TALER_TESTING_interpreter_lookup_command 959 history_cmd = TALER_TESTING_interpreter_lookup_command
@@ -972,7 +977,6 @@ history_range_run (void *cls,
972 977
973 if (NULL != hs->end_row_reference) 978 if (NULL != hs->end_row_reference)
974 { 979 {
975
976 const struct TALER_TESTING_Command *history_cmd; 980 const struct TALER_TESTING_Command *history_cmd;
977 981
978 history_cmd = TALER_TESTING_interpreter_lookup_command 982 history_cmd = TALER_TESTING_interpreter_lookup_command
@@ -1017,18 +1021,17 @@ history_range_run (void *cls,
1017 * @param cmd the command which is being cleaned up. 1021 * @param cmd the command which is being cleaned up.
1018 */ 1022 */
1019static void 1023static void
1020history_cleanup 1024history_cleanup (void *cls,
1021 (void *cls, 1025 const struct TALER_TESTING_Command *cmd)
1022 const struct TALER_TESTING_Command *cmd)
1023{ 1026{
1024 struct HistoryState *hs = cls; 1027 struct HistoryState *hs = cls;
1025 1028
1029 (void) cmd;
1026 if (NULL != hs->hh) 1030 if (NULL != hs->hh)
1027 { 1031 {
1028 TALER_LOG_WARNING ("/history did not complete\n"); 1032 TALER_LOG_WARNING ("/history did not complete\n");
1029 TALER_BANK_history_cancel (hs->hh); 1033 TALER_BANK_history_cancel (hs->hh);
1030 } 1034 }
1031
1032 GNUNET_free (hs); 1035 GNUNET_free (hs);
1033} 1036}
1034 1037
@@ -1041,24 +1044,22 @@ history_cleanup
1041 * operation. 1044 * operation.
1042 * @param account_no bank account number to ask the history for. 1045 * @param account_no bank account number to ask the history for.
1043 * @param direction which direction this operation is interested. 1046 * @param direction which direction this operation is interested.
1044 * @param ascending if GNUNET_YES, the bank will return the rows 1047 * @param ascending if #GNUNET_YES, the bank will return the rows
1045 * in ascending (= chronological) order. 1048 * in ascending (= chronological) order.
1046 * @param start_row_reference reference to a command that can 1049 * @param start_row_reference reference to a command that can
1047 * offer a row identifier, to be used as the starting row 1050 * offer a row identifier, to be used as the starting row
1048 * to accept in the result. 1051 * to accept in the result.
1049 * @param num_result how many rows we want in the result. 1052 * @param num_results how many rows we want in the result.
1050 *
1051 * @return the command. 1053 * @return the command.
1052 */ 1054 */
1053struct TALER_TESTING_Command 1055struct TALER_TESTING_Command
1054TALER_TESTING_cmd_bank_history 1056TALER_TESTING_cmd_bank_history (const char *label,
1055 (const char *label, 1057 const char *bank_url,
1056 const char *bank_url, 1058 uint64_t account_no,
1057 uint64_t account_no, 1059 enum TALER_BANK_Direction direction,
1058 enum TALER_BANK_Direction direction, 1060 unsigned int ascending,
1059 unsigned int ascending, 1061 const char *start_row_reference,
1060 const char *start_row_reference, 1062 unsigned long long num_results)
1061 long long num_results)
1062{ 1063{
1063 struct HistoryState *hs; 1064 struct HistoryState *hs;
1064 1065
@@ -1072,15 +1073,17 @@ TALER_TESTING_cmd_bank_history
1072 hs->start_date = GNUNET_TIME_UNIT_FOREVER_ABS; 1073 hs->start_date = GNUNET_TIME_UNIT_FOREVER_ABS;
1073 hs->end_date = GNUNET_TIME_UNIT_FOREVER_ABS; 1074 hs->end_date = GNUNET_TIME_UNIT_FOREVER_ABS;
1074 1075
1075 struct TALER_TESTING_Command cmd = { 1076 {
1076 .label = label, 1077 struct TALER_TESTING_Command cmd = {
1077 .cls = hs, 1078 .label = label,
1078 .run = &history_run, 1079 .cls = hs,
1079 .cleanup = &history_cleanup, 1080 .run = &history_run,
1080 .traits = &history_traits 1081 .cleanup = &history_cleanup,
1081 }; 1082 .traits = &history_traits
1082 1083 };
1083 return cmd; 1084
1085 return cmd;
1086 }
1084} 1087}
1085 1088
1086 1089
@@ -1124,15 +1127,17 @@ TALER_TESTING_cmd_bank_history_range
1124 hs->start_date = GNUNET_TIME_UNIT_FOREVER_ABS; 1127 hs->start_date = GNUNET_TIME_UNIT_FOREVER_ABS;
1125 hs->end_date = GNUNET_TIME_UNIT_FOREVER_ABS; 1128 hs->end_date = GNUNET_TIME_UNIT_FOREVER_ABS;
1126 1129
1127 struct TALER_TESTING_Command cmd = { 1130 {
1128 .label = label, 1131 struct TALER_TESTING_Command cmd = {
1129 .cls = hs, 1132 .label = label,
1130 .run = &history_range_run, 1133 .cls = hs,
1131 .cleanup = &history_cleanup, 1134 .run = &history_range_run,
1132 .traits = &history_traits 1135 .cleanup = &history_cleanup,
1133 }; 1136 .traits = &history_traits
1134 1137 };
1135 return cmd; 1138
1139 return cmd;
1140 }
1136} 1141}
1137 1142
1138 1143
@@ -1173,15 +1178,17 @@ TALER_TESTING_cmd_bank_history_range_with_dates
1173 hs->start_date = start_date; 1178 hs->start_date = start_date;
1174 hs->end_date = end_date; 1179 hs->end_date = end_date;
1175 1180
1176 struct TALER_TESTING_Command cmd = { 1181 {
1177 .label = label, 1182 struct TALER_TESTING_Command cmd = {
1178 .cls = hs, 1183 .label = label,
1179 .run = &history_range_run, 1184 .cls = hs,
1180 .cleanup = &history_cleanup, 1185 .run = &history_range_run,
1181 .traits = &history_traits 1186 .cleanup = &history_cleanup,
1182 }; 1187 .traits = &history_traits
1183 1188 };
1184 return cmd; 1189
1190 return cmd;
1191 }
1185} 1192}
1186 1193
1187/* end of testing_api_cmd_history.c */ 1194/* end of testing_api_cmd_history.c */
diff --git a/src/bank-lib/testing_api_cmd_reject.c b/src/bank-lib/testing_api_cmd_reject.c
index 1f19a379d..8d37266d1 100644
--- a/src/bank-lib/testing_api_cmd_reject.c
+++ b/src/bank-lib/testing_api_cmd_reject.c
@@ -79,14 +79,16 @@ reject_cb (void *cls,
79 { 79 {
80 GNUNET_break (0); 80 GNUNET_break (0);
81 fprintf (stderr, 81 fprintf (stderr,
82 "Unexpected response code %u:\n", 82 "Unexpected response code %u/%d\n",
83 http_status); 83 http_status,
84 (int) ec);
84 TALER_TESTING_interpreter_fail (is); 85 TALER_TESTING_interpreter_fail (is);
85 return; 86 return;
86 } 87 }
87 TALER_TESTING_interpreter_next (is); 88 TALER_TESTING_interpreter_next (is);
88} 89}
89 90
91
90/** 92/**
91 * Cleanup the state of a "reject" CMD, and possibly 93 * Cleanup the state of a "reject" CMD, and possibly
92 * cancel a pending operation thereof. 94 * cancel a pending operation thereof.
@@ -95,21 +97,21 @@ reject_cb (void *cls,
95 * @param cmd the command. 97 * @param cmd the command.
96 */ 98 */
97static void 99static void
98reject_cleanup 100reject_cleanup (void *cls,
99 (void *cls, 101 const struct TALER_TESTING_Command *cmd)
100 const struct TALER_TESTING_Command *cmd)
101{ 102{
102 struct RejectState *rs = cls; 103 struct RejectState *rs = cls;
103 104
105 (void) cmd;
104 if (NULL != rs->rh) 106 if (NULL != rs->rh)
105 { 107 {
106 TALER_LOG_WARNING ("/reject did not complete\n"); 108 TALER_LOG_WARNING ("/reject did not complete\n");
107 TALER_BANK_reject_cancel (rs->rh); 109 TALER_BANK_reject_cancel (rs->rh);
108 } 110 }
109
110 GNUNET_free (rs); 111 GNUNET_free (rs);
111} 112}
112 113
114
113/** 115/**
114 * Run the command. 116 * Run the command.
115 * 117 *
@@ -128,19 +130,18 @@ reject_run (void *cls,
128 const uint64_t *row_id; 130 const uint64_t *row_id;
129 extern struct TALER_BANK_AuthenticationData AUTHS[]; 131 extern struct TALER_BANK_AuthenticationData AUTHS[];
130 132
131 deposit_cmd = TALER_TESTING_interpreter_lookup_command 133 (void) cmd;
132 (is, rs->deposit_reference); 134 deposit_cmd
133 135 = TALER_TESTING_interpreter_lookup_command (is,
136 rs->deposit_reference);
134 if (NULL == deposit_cmd) 137 if (NULL == deposit_cmd)
135 TALER_TESTING_FAIL (is); 138 TALER_TESTING_FAIL (is);
136 139 GNUNET_assert (GNUNET_OK ==
137 GNUNET_assert 140 TALER_TESTING_GET_TRAIT_CREDIT_ACCOUNT (deposit_cmd,
138 (GNUNET_OK == TALER_TESTING_GET_TRAIT_CREDIT_ACCOUNT 141 &credit_account));
139 (deposit_cmd, &credit_account)); 142 GNUNET_assert (GNUNET_OK ==
140 143 TALER_TESTING_GET_TRAIT_ROW_ID (deposit_cmd,
141 GNUNET_assert 144 &row_id));
142 (GNUNET_OK == TALER_TESTING_GET_TRAIT_ROW_ID
143 (deposit_cmd, &row_id));
144 TALER_LOG_INFO ("Account %llu rejects deposit\n", 145 TALER_LOG_INFO ("Account %llu rejects deposit\n",
145 (unsigned long long) *credit_account); 146 (unsigned long long) *credit_account);
146 rs->rh = TALER_BANK_reject (is->ctx, 147 rs->rh = TALER_BANK_reject (is->ctx,
@@ -191,7 +192,6 @@ reject_traits (void *cls,
191 * @param deposit_reference reference to a command that will 192 * @param deposit_reference reference to a command that will
192 * provide a "row id" and credit (bank) account to craft 193 * provide a "row id" and credit (bank) account to craft
193 * the "reject" request. 194 * the "reject" request.
194 *
195 * @return the command. 195 * @return the command.
196 */ 196 */
197struct TALER_TESTING_Command 197struct TALER_TESTING_Command
@@ -205,16 +205,17 @@ TALER_TESTING_cmd_bank_reject (const char *label,
205 rs->bank_url = bank_url; 205 rs->bank_url = bank_url;
206 rs->deposit_reference = deposit_reference; 206 rs->deposit_reference = deposit_reference;
207 207
208 struct TALER_TESTING_Command cmd = { 208 {
209 .cls = rs, 209 struct TALER_TESTING_Command cmd = {
210 .run = &reject_run, 210 .cls = rs,
211 .cleanup = &reject_cleanup, 211 .run = &reject_run,
212 .label = label, 212 .cleanup = &reject_cleanup,
213 .traits = &reject_traits 213 .label = label,
214 }; 214 .traits = &reject_traits
215 215 };
216 return cmd; 216
217 217 return cmd;
218 }
218} 219}
219 220
220 221
diff --git a/src/exchange/taler-exchange-aggregator.c b/src/exchange/taler-exchange-aggregator.c
index 89cd65828..fffb652c7 100644
--- a/src/exchange/taler-exchange-aggregator.c
+++ b/src/exchange/taler-exchange-aggregator.c
@@ -476,6 +476,7 @@ cleanup_au (void)
476static void 476static void
477shutdown_task (void *cls) 477shutdown_task (void *cls)
478{ 478{
479 (void) cls;
479 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 480 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
480 "Running shutdown\n"); 481 "Running shutdown\n");
481 if (NULL != task) 482 if (NULL != task)
@@ -626,8 +627,11 @@ refund_by_coin_cb (void *cls,
626{ 627{
627 struct AggregationUnit *aux = cls; 628 struct AggregationUnit *aux = cls;
628 629
630 (void) merchant_sig;
631 (void) rtransaction_id;
632 (void) refund_fee;
629 /* TODO: potential optimization: include these conditions 633 /* TODO: potential optimization: include these conditions
630 in the SELECT! */ 634 in the SELECT, and avoid fetching the values we do not need! */
631 if (0 != GNUNET_memcmp (merchant_pub, 635 if (0 != GNUNET_memcmp (merchant_pub,
632 &aux->merchant_pub)) 636 &aux->merchant_pub))
633 return GNUNET_OK; /* different merchant */ 637 return GNUNET_OK; /* different merchant */
@@ -675,6 +679,10 @@ deposit_cb (void *cls,
675{ 679{
676 enum GNUNET_DB_QueryStatus qs; 680 enum GNUNET_DB_QueryStatus qs;
677 681
682 (void) cls;
683 /* NOTE: potential optimization: use custom SQL API to not
684 fetch this one: */
685 (void) wire_deadline; /* already checked by SQL query */
678 au->merchant_pub = *merchant_pub; 686 au->merchant_pub = *merchant_pub;
679 if (GNUNET_SYSERR == 687 if (GNUNET_SYSERR ==
680 TALER_amount_subtract (&au->total_amount, 688 TALER_amount_subtract (&au->total_amount,
@@ -688,7 +696,6 @@ deposit_cb (void *cls,
688 return GNUNET_DB_STATUS_HARD_ERROR; 696 return GNUNET_DB_STATUS_HARD_ERROR;
689 } 697 }
690 au->row_id = row_id; 698 au->row_id = row_id;
691
692 au->h_contract = h_contract_terms; 699 au->h_contract = h_contract_terms;
693 qs = db_plugin->select_refunds_by_coin (db_plugin->cls, 700 qs = db_plugin->select_refunds_by_coin (db_plugin->cls,
694 au->session, 701 au->session,
@@ -804,6 +811,11 @@ aggregate_cb (void *cls,
804 struct TALER_Amount delta; 811 struct TALER_Amount delta;
805 enum GNUNET_DB_QueryStatus qs; 812 enum GNUNET_DB_QueryStatus qs;
806 813
814 (void) cls;
815 /* NOTE: potential optimization: use custom SQL API to not
816 fetch these: */
817 (void) wire_deadline; /* checked by SQL */
818 (void) wire; /* must match */
807 GNUNET_break (0 == GNUNET_memcmp (&au->merchant_pub, 819 GNUNET_break (0 == GNUNET_memcmp (&au->merchant_pub,
808 merchant_pub)); 820 merchant_pub));
809 /* compute contribution of this coin after fees */ 821 /* compute contribution of this coin after fees */
@@ -1078,6 +1090,9 @@ expired_reserve_cb (void *cls,
1078 enum GNUNET_DB_QueryStatus qs; 1090 enum GNUNET_DB_QueryStatus qs;
1079 struct WireAccount *wa; 1091 struct WireAccount *wa;
1080 1092
1093 /* NOTE: potential optimization: use custom SQL API to not
1094 fetch this: */
1095 (void) expiration_date; /* we know it expired */
1081 GNUNET_assert (NULL == ctc); 1096 GNUNET_assert (NULL == ctc);
1082 now = GNUNET_TIME_absolute_get (); 1097 now = GNUNET_TIME_absolute_get ();
1083 (void) GNUNET_TIME_round_abs (&now); 1098 (void) GNUNET_TIME_round_abs (&now);
@@ -1218,6 +1233,7 @@ run_reserve_closures (void *cls)
1218 struct ExpiredReserveContext erc; 1233 struct ExpiredReserveContext erc;
1219 struct GNUNET_TIME_Absolute now; 1234 struct GNUNET_TIME_Absolute now;
1220 1235
1236 (void) cls;
1221 task = NULL; 1237 task = NULL;
1222 reserves_idle = GNUNET_NO; 1238 reserves_idle = GNUNET_NO;
1223 tc = GNUNET_SCHEDULER_get_task_context (); 1239 tc = GNUNET_SCHEDULER_get_task_context ();
@@ -1305,6 +1321,7 @@ run_aggregation (void *cls)
1305 enum GNUNET_DB_QueryStatus qs; 1321 enum GNUNET_DB_QueryStatus qs;
1306 const struct GNUNET_SCHEDULER_TaskContext *tc; 1322 const struct GNUNET_SCHEDULER_TaskContext *tc;
1307 1323
1324 (void) cls;
1308 task = NULL; 1325 task = NULL;
1309 tc = GNUNET_SCHEDULER_get_task_context (); 1326 tc = GNUNET_SCHEDULER_get_task_context ();
1310 if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) 1327 if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))
@@ -1554,6 +1571,7 @@ prepare_cb (void *cls,
1554 struct TALER_EXCHANGEDB_Session *session = au->session; 1571 struct TALER_EXCHANGEDB_Session *session = au->session;
1555 enum GNUNET_DB_QueryStatus qs; 1572 enum GNUNET_DB_QueryStatus qs;
1556 1573
1574 (void) cls;
1557 GNUNET_free_non_null (au->additional_rows); 1575 GNUNET_free_non_null (au->additional_rows);
1558 au->additional_rows = NULL; 1576 au->additional_rows = NULL;
1559 if (NULL == buf) 1577 if (NULL == buf)
@@ -1663,6 +1681,9 @@ wire_confirm_cb (void *cls,
1663 struct TALER_EXCHANGEDB_Session *session = wpd->session; 1681 struct TALER_EXCHANGEDB_Session *session = wpd->session;
1664 enum GNUNET_DB_QueryStatus qs; 1682 enum GNUNET_DB_QueryStatus qs;
1665 1683
1684 (void) cls;
1685 (void) row_id;
1686 (void) row_id_size;
1666 wpd->eh = NULL; 1687 wpd->eh = NULL;
1667 if (GNUNET_SYSERR == success) 1688 if (GNUNET_SYSERR == success)
1668 { 1689 {
@@ -1747,6 +1768,7 @@ wire_prepare_cb (void *cls,
1747 const char *buf, 1768 const char *buf,
1748 size_t buf_size) 1769 size_t buf_size)
1749{ 1770{
1771 (void) cls;
1750 wpd->row_id = rowid; 1772 wpd->row_id = rowid;
1751 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 1773 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
1752 "Starting wire transfer %llu\n", 1774 "Starting wire transfer %llu\n",
@@ -1798,6 +1820,7 @@ run_transfers (void *cls)
1798 struct TALER_EXCHANGEDB_Session *session; 1820 struct TALER_EXCHANGEDB_Session *session;
1799 const struct GNUNET_SCHEDULER_TaskContext *tc; 1821 const struct GNUNET_SCHEDULER_TaskContext *tc;
1800 1822
1823 (void) cls;
1801 task = NULL; 1824 task = NULL;
1802 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 1825 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
1803 "Checking for pending wire transfers\n"); 1826 "Checking for pending wire transfers\n");
@@ -1877,6 +1900,9 @@ run (void *cls,
1877 const char *cfgfile, 1900 const char *cfgfile,
1878 const struct GNUNET_CONFIGURATION_Handle *c) 1901 const struct GNUNET_CONFIGURATION_Handle *c)
1879{ 1902{
1903 (void) cls;
1904 (void) args;
1905 (void) cfgfile;
1880 if (GNUNET_OK != 1906 if (GNUNET_OK !=
1881 GNUNET_CONFIGURATION_get_value_string (c, 1907 GNUNET_CONFIGURATION_get_value_string (c,
1882 "exchange", 1908 "exchange",
diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c
index 8b89cf971..bdb213a87 100644
--- a/src/exchange/taler-exchange-httpd.c
+++ b/src/exchange/taler-exchange-httpd.c
@@ -167,8 +167,11 @@ handle_mhd_completion_callback (void *cls,
167{ 167{
168 struct ExchangeHttpRequestClosure *ecls = *con_cls; 168 struct ExchangeHttpRequestClosure *ecls = *con_cls;
169 169
170 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Request completed\n"); 170 (void) cls;
171 171 (void) connection;
172 (void) toe;
173 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
174 "Request completed\n");
172 if (NULL == ecls) 175 if (NULL == ecls)
173 return; 176 return;
174 TEH_PARSE_post_cleanup_callback (ecls->opaque_post_parsing_context); 177 TEH_PARSE_post_cleanup_callback (ecls->opaque_post_parsing_context);
@@ -186,14 +189,14 @@ handle_mhd_completion_callback (void *cls,
186 * Return GNUNET_YES if given a valid correlation ID and 189 * Return GNUNET_YES if given a valid correlation ID and
187 * GNUNET_NO otherwise. 190 * GNUNET_NO otherwise.
188 * 191 *
189 * @returns GNUNET_YES iff given a valid correlation ID 192 * @returns #GNUNET_YES iff given a valid correlation ID
190 */ 193 */
191static int 194static int
192is_valid_correlation_id (const char *correlation_id) 195is_valid_correlation_id (const char *correlation_id)
193{ 196{
194 if (strlen (correlation_id) >= 64) 197 if (strlen (correlation_id) >= 64)
195 return GNUNET_NO; 198 return GNUNET_NO;
196 for (int i = 0; i < strlen (correlation_id); i++) 199 for (size_t i = 0; i < strlen (correlation_id); i++)
197 if (! (isalnum (correlation_id[i]) || (correlation_id[i] == '-'))) 200 if (! (isalnum (correlation_id[i]) || (correlation_id[i] == '-')))
198 return GNUNET_NO; 201 return GNUNET_NO;
199 return GNUNET_YES; 202 return GNUNET_YES;
@@ -401,7 +404,7 @@ handle_mhd_request (void *cls,
401 "Only POST is allowed", 0, 404 "Only POST is allowed", 0,
402 &TEH_MHD_handler_send_json_pack_error, MHD_HTTP_METHOD_NOT_ALLOWED }, 405 &TEH_MHD_handler_send_json_pack_error, MHD_HTTP_METHOD_NOT_ALLOWED },
403#endif 406#endif
404 { NULL, NULL, NULL, NULL, 0, 0 } 407 { NULL, NULL, NULL, NULL, 0, NULL, 0 }
405 }; 408 };
406 static struct TEH_RequestHandler h404 = { 409 static struct TEH_RequestHandler h404 = {
407 "", NULL, "text/html", 410 "", NULL, "text/html",
@@ -415,6 +418,8 @@ handle_mhd_request (void *cls,
415 struct GNUNET_AsyncScopeSave old_scope; 418 struct GNUNET_AsyncScopeSave old_scope;
416 const char *correlation_id = NULL; 419 const char *correlation_id = NULL;
417 420
421 (void) cls;
422 (void) version;
418 if (NULL == ecls) 423 if (NULL == ecls)
419 { 424 {
420 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Handling new request\n"); 425 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Handling new request\n");
@@ -817,6 +822,9 @@ connection_done (void *cls,
817 void **socket_context, 822 void **socket_context,
818 enum MHD_ConnectionNotificationCode toe) 823 enum MHD_ConnectionNotificationCode toe)
819{ 824{
825 (void) cls;
826 (void) connection;
827 (void) socket_context;
820 /* We only act if the connection is closed. */ 828 /* We only act if the connection is closed. */
821 if (MHD_CONNECTION_NOTIFY_CLOSED != toe) 829 if (MHD_CONNECTION_NOTIFY_CLOSED != toe)
822 return; 830 return;
@@ -849,6 +857,7 @@ handle_mhd_logs (void *cls,
849 static int cache; 857 static int cache;
850 char buf[2048]; 858 char buf[2048];
851 859
860 (void) cls;
852 if (-1 == cache) 861 if (-1 == cache)
853 return; 862 return;
854 if (0 == cache) 863 if (0 == cache)
diff --git a/src/exchange/taler-exchange-httpd_keystate.c b/src/exchange/taler-exchange-httpd_keystate.c
index 4eb5af5da..f9cda8a5f 100644
--- a/src/exchange/taler-exchange-httpd_keystate.c
+++ b/src/exchange/taler-exchange-httpd_keystate.c
@@ -423,6 +423,8 @@ free_denom_key (void *cls,
423{ 423{
424 struct TALER_EXCHANGEDB_DenominationKeyIssueInformation *dki = value; 424 struct TALER_EXCHANGEDB_DenominationKeyIssueInformation *dki = value;
425 425
426 (void) cls;
427 (void) key;
426 if (NULL != dki->denom_priv.rsa_private_key) 428 if (NULL != dki->denom_priv.rsa_private_key)
427 GNUNET_CRYPTO_rsa_private_key_free (dki->denom_priv.rsa_private_key); 429 GNUNET_CRYPTO_rsa_private_key_free (dki->denom_priv.rsa_private_key);
428 GNUNET_CRYPTO_rsa_public_key_free (dki->denom_pub.rsa_public_key); 430 GNUNET_CRYPTO_rsa_public_key_free (dki->denom_pub.rsa_public_key);
@@ -698,7 +700,7 @@ TALER_EXCHANGE_conf_duration_provide ()
698 * @param cls closure with the `struct AddRevocationContext *` 700 * @param cls closure with the `struct AddRevocationContext *`
699 * @param connection NULL 701 * @param connection NULL
700 * @param session database session to use 702 * @param session database session to use
701 * @param[out] mhd_ret NULL 703 * @param[out] mhd_ret not used
702 * @return transaction status 704 * @return transaction status
703 */ 705 */
704static enum GNUNET_DB_QueryStatus 706static enum GNUNET_DB_QueryStatus
@@ -712,6 +714,8 @@ add_revocations_transaction (void *cls,
712 struct TALER_MasterSignatureP master_sig; 714 struct TALER_MasterSignatureP master_sig;
713 uint64_t rowid; 715 uint64_t rowid;
714 716
717 (void) connection;
718 (void) mhd_ret;
715 qs = TEH_plugin->get_denomination_revocation (TEH_plugin->cls, 719 qs = TEH_plugin->get_denomination_revocation (TEH_plugin->cls,
716 session, 720 session,
717 &arc->dki->issue.properties. 721 &arc->dki->issue.properties.
@@ -736,7 +740,7 @@ add_revocations_transaction (void *cls,
736 * @param cls closure with the `const struct TALER_EXCHANGEDB_DenominationKeyIssueInformation *` 740 * @param cls closure with the `const struct TALER_EXCHANGEDB_DenominationKeyIssueInformation *`
737 * @param connection NULL 741 * @param connection NULL
738 * @param session database session to use 742 * @param session database session to use
739 * @param[out] mhd_ret NULL 743 * @param[out] mhd_ret not used
740 * @return transaction status 744 * @return transaction status
741 */ 745 */
742static enum GNUNET_DB_QueryStatus 746static enum GNUNET_DB_QueryStatus
@@ -749,6 +753,8 @@ add_denomination_transaction (void *cls,
749 enum GNUNET_DB_QueryStatus qs; 753 enum GNUNET_DB_QueryStatus qs;
750 struct TALER_EXCHANGEDB_DenominationKeyInformationP issue_exists; 754 struct TALER_EXCHANGEDB_DenominationKeyInformationP issue_exists;
751 755
756 (void) connection;
757 (void) mhd_ret;
752 qs = TEH_plugin->get_denomination_info (TEH_plugin->cls, 758 qs = TEH_plugin->get_denomination_info (TEH_plugin->cls,
753 session, 759 session,
754 &dki->issue.properties.denom_hash, 760 &dki->issue.properties.denom_hash,
@@ -1314,6 +1320,7 @@ add_auditor_entry (void *cls,
1314 struct AuditorEntry *ae = value; 1320 struct AuditorEntry *ae = value;
1315 json_t *ao; 1321 json_t *ao;
1316 1322
1323 (void) key;
1317 ao = json_pack ("{s:o, s:s, s:o}", 1324 ao = json_pack ("{s:o, s:s, s:o}",
1318 "denomination_keys", ae->ar, 1325 "denomination_keys", ae->ar,
1319 "auditor_url", ae->auditor_url, 1326 "auditor_url", ae->auditor_url,
@@ -2310,6 +2317,9 @@ TEH_KS_handler_keys (struct TEH_RequestHandler *rh,
2310 struct GNUNET_TIME_Absolute now; 2317 struct GNUNET_TIME_Absolute now;
2311 const struct KeysResponseData *krd; 2318 const struct KeysResponseData *krd;
2312 2319
2320 (void) connection_cls;
2321 (void) upload_data;
2322 (void) upload_data_size;
2313 have_cherrypick = MHD_lookup_connection_value (connection, 2323 have_cherrypick = MHD_lookup_connection_value (connection,
2314 MHD_GET_ARGUMENT_KIND, 2324 MHD_GET_ARGUMENT_KIND,
2315 "last_issue_date"); 2325 "last_issue_date");
diff --git a/src/exchangedb/exchangedb_auditorkeys.c b/src/exchangedb/exchangedb_auditorkeys.c
index bfe406d6d..fabd5278f 100644
--- a/src/exchangedb/exchangedb_auditorkeys.c
+++ b/src/exchangedb/exchangedb_auditorkeys.c
@@ -119,7 +119,7 @@ auditor_iter (void *cls,
119 return GNUNET_OK; 119 return GNUNET_OK;
120 } 120 }
121 af = GNUNET_malloc (size); 121 af = GNUNET_malloc (size);
122 if (size != 122 if (((ssize_t) size) !=
123 GNUNET_DISK_fn_read (filename, 123 GNUNET_DISK_fn_read (filename,
124 af, 124 af,
125 size)) 125 size))
@@ -274,22 +274,22 @@ TALER_EXCHANGEDB_auditor_write (const char *filename,
274 &af, 274 &af,
275 wsize))) 275 wsize)))
276 goto cleanup; 276 goto cleanup;
277 if (wrote != wsize) 277 if (wrote != (ssize_t) wsize)
278 goto cleanup; 278 goto cleanup;
279 wsize = dki_len * sizeof (struct TALER_AuditorSignatureP); 279 wsize = dki_len * sizeof (struct TALER_AuditorSignatureP);
280 if (wsize == 280 if (((ssize_t) wsize) ==
281 GNUNET_DISK_file_write (fh, 281 GNUNET_DISK_file_write (fh,
282 asigs, 282 asigs,
283 wsize)) 283 wsize))
284 ret = GNUNET_OK; 284 ret = GNUNET_OK;
285 wsize = dki_len * sizeof (struct TALER_DenominationKeyValidityPS); 285 wsize = dki_len * sizeof (struct TALER_DenominationKeyValidityPS);
286 if (wsize == 286 if (((ssize_t) wsize) ==
287 GNUNET_DISK_file_write (fh, 287 GNUNET_DISK_file_write (fh,
288 dki, 288 dki,
289 wsize)) 289 wsize))
290 ret = GNUNET_OK; 290 ret = GNUNET_OK;
291 wsize = strlen (auditor_url) + 1; 291 wsize = strlen (auditor_url) + 1;
292 if (wsize == 292 if (((ssize_t) wsize) ==
293 GNUNET_DISK_file_write (fh, 293 GNUNET_DISK_file_write (fh,
294 auditor_url, 294 auditor_url,
295 wsize)) 295 wsize))
diff --git a/src/exchangedb/exchangedb_denomkeys.c b/src/exchangedb/exchangedb_denomkeys.c
index 0584c2c6d..5a26ce6bd 100644
--- a/src/exchangedb/exchangedb_denomkeys.c
+++ b/src/exchangedb/exchangedb_denomkeys.c
@@ -134,7 +134,7 @@ TALER_EXCHANGEDB_denomination_key_read (const char *filename,
134 return GNUNET_SYSERR; 134 return GNUNET_SYSERR;
135 } 135 }
136 data = GNUNET_malloc (size); 136 data = GNUNET_malloc (size);
137 if (size != 137 if (((ssize_t) size) !=
138 GNUNET_DISK_fn_read (filename, 138 GNUNET_DISK_fn_read (filename,
139 data, 139 data,
140 size)) 140 size))
@@ -217,14 +217,14 @@ TALER_EXCHANGEDB_denomination_key_write (const char *filename,
217 &dki->issue, 217 &dki->issue,
218 wsize))) 218 wsize)))
219 goto cleanup; 219 goto cleanup;
220 if (wrote != wsize) 220 if (wrote != (ssize_t) wsize)
221 goto cleanup; 221 goto cleanup;
222 if (GNUNET_SYSERR == 222 if (GNUNET_SYSERR ==
223 (wrote = GNUNET_DISK_file_write (fh, 223 (wrote = GNUNET_DISK_file_write (fh,
224 priv_enc, 224 priv_enc,
225 priv_enc_size))) 225 priv_enc_size)))
226 goto cleanup; 226 goto cleanup;
227 if (wrote != priv_enc_size) 227 if (wrote != (ssize_t) priv_enc_size)
228 goto cleanup; 228 goto cleanup;
229 ret = GNUNET_OK; 229 ret = GNUNET_OK;
230cleanup: 230cleanup:
diff --git a/src/exchangedb/plugin_exchangedb_common.c b/src/exchangedb/plugin_exchangedb_common.c
index 271421795..dac746b09 100644
--- a/src/exchangedb/plugin_exchangedb_common.c
+++ b/src/exchangedb/plugin_exchangedb_common.c
@@ -36,6 +36,7 @@ common_free_reserve_history (void *cls,
36 struct TALER_EXCHANGEDB_ReserveHistory *backref; 36 struct TALER_EXCHANGEDB_ReserveHistory *backref;
37 struct TALER_EXCHANGEDB_ClosingTransfer *closing; 37 struct TALER_EXCHANGEDB_ClosingTransfer *closing;
38 38
39 (void) cls;
39 while (NULL != rh) 40 while (NULL != rh)
40 { 41 {
41 switch (rh->type) 42 switch (rh->type)
@@ -81,6 +82,7 @@ common_free_coin_transaction_list (void *cls,
81{ 82{
82 struct TALER_EXCHANGEDB_TransactionList *next; 83 struct TALER_EXCHANGEDB_TransactionList *next;
83 84
85 (void) cls;
84 while (NULL != list) 86 while (NULL != list)
85 { 87 {
86 next = list->next; 88 next = list->next;
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c
index eaca40936..1dd408752 100644
--- a/src/exchangedb/plugin_exchangedb_postgres.c
+++ b/src/exchangedb/plugin_exchangedb_postgres.c
@@ -1735,6 +1735,7 @@ postgres_start (void *cls,
1735 GNUNET_PQ_EXECUTE_STATEMENT_END 1735 GNUNET_PQ_EXECUTE_STATEMENT_END
1736 }; 1736 };
1737 1737
1738 (void) cls;
1738 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1739 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1739 "Starting transaction on %p\n", 1740 "Starting transaction on %p\n",
1740 session->conn); 1741 session->conn);
@@ -1767,6 +1768,7 @@ postgres_rollback (void *cls,
1767 GNUNET_PQ_EXECUTE_STATEMENT_END 1768 GNUNET_PQ_EXECUTE_STATEMENT_END
1768 }; 1769 };
1769 1770
1771 (void) cls;
1770 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1772 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1771 "Rolling back transaction on %p\n", 1773 "Rolling back transaction on %p\n",
1772 session->conn); 1774 session->conn);
@@ -1793,6 +1795,7 @@ postgres_commit (void *cls,
1793 }; 1795 };
1794 enum GNUNET_DB_QueryStatus qs; 1796 enum GNUNET_DB_QueryStatus qs;
1795 1797
1798 (void) cls;
1796 qs = GNUNET_PQ_eval_prepared_non_select (session->conn, 1799 qs = GNUNET_PQ_eval_prepared_non_select (session->conn,
1797 "do_commit", 1800 "do_commit",
1798 params); 1801 params);
@@ -1818,6 +1821,7 @@ postgres_preflight (void *cls,
1818 GNUNET_PQ_EXECUTE_STATEMENT_END 1821 GNUNET_PQ_EXECUTE_STATEMENT_END
1819 }; 1822 };
1820 1823
1824 (void) cls;
1821 if (NULL == session->transaction_name) 1825 if (NULL == session->transaction_name)
1822 return; /* all good */ 1826 return; /* all good */
1823 if (GNUNET_OK == 1827 if (GNUNET_OK ==
@@ -1874,6 +1878,7 @@ postgres_insert_denomination_info (void *cls,
1874 GNUNET_PQ_query_param_end 1878 GNUNET_PQ_query_param_end
1875 }; 1879 };
1876 1880
1881 (void) cls;
1877 /* check fees match coin currency */ 1882 /* check fees match coin currency */
1878 GNUNET_assert (GNUNET_YES == 1883 GNUNET_assert (GNUNET_YES ==
1879 TALER_amount_cmp_currency_nbo (&issue->properties.value, 1884 TALER_amount_cmp_currency_nbo (&issue->properties.value,
@@ -2137,6 +2142,7 @@ reserves_update (void *cls,
2137 GNUNET_PQ_query_param_end 2142 GNUNET_PQ_query_param_end
2138 }; 2143 };
2139 2144
2145 (void) cls;
2140 return GNUNET_PQ_eval_prepared_non_select (session->conn, 2146 return GNUNET_PQ_eval_prepared_non_select (session->conn,
2141 "reserve_update", 2147 "reserve_update",
2142 params); 2148 params);
@@ -2335,6 +2341,7 @@ postgres_get_latest_reserve_in_reference (void *cls,
2335 GNUNET_PQ_result_spec_end 2341 GNUNET_PQ_result_spec_end
2336 }; 2342 };
2337 2343
2344 (void) cls;
2338 return GNUNET_PQ_eval_prepared_singleton_select (session->conn, 2345 return GNUNET_PQ_eval_prepared_singleton_select (session->conn,
2339 "reserves_in_get_latest_wire_reference", 2346 "reserves_in_get_latest_wire_reference",
2340 params, 2347 params,
@@ -2957,6 +2964,7 @@ postgres_mark_deposit_tiny (void *cls,
2957 GNUNET_PQ_query_param_end 2964 GNUNET_PQ_query_param_end
2958 }; 2965 };
2959 2966
2967 (void) cls;
2960 return GNUNET_PQ_eval_prepared_non_select (session->conn, 2968 return GNUNET_PQ_eval_prepared_non_select (session->conn,
2961 "mark_deposit_tiny", 2969 "mark_deposit_tiny",
2962 params); 2970 params);
@@ -2994,6 +3002,7 @@ postgres_test_deposit_done (void *cls,
2994 }; 3002 };
2995 enum GNUNET_DB_QueryStatus qs; 3003 enum GNUNET_DB_QueryStatus qs;
2996 3004
3005 (void) cls;
2997 qs = GNUNET_PQ_eval_prepared_singleton_select (session->conn, 3006 qs = GNUNET_PQ_eval_prepared_singleton_select (session->conn,
2998 "test_deposit_done", 3007 "test_deposit_done",
2999 params, 3008 params,
@@ -3028,6 +3037,7 @@ postgres_mark_deposit_done (void *cls,
3028 GNUNET_PQ_query_param_end 3037 GNUNET_PQ_query_param_end
3029 }; 3038 };
3030 3039
3040 (void) cls;
3031 return GNUNET_PQ_eval_prepared_non_select (session->conn, 3041 return GNUNET_PQ_eval_prepared_non_select (session->conn,
3032 "mark_deposit_done", 3042 "mark_deposit_done",
3033 params); 3043 params);
@@ -3346,6 +3356,7 @@ insert_known_coin (void *cls,
3346 GNUNET_PQ_query_param_end 3356 GNUNET_PQ_query_param_end
3347 }; 3357 };
3348 3358
3359 (void) cls;
3349 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 3360 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
3350 "Creating known coin %s\n", 3361 "Creating known coin %s\n",
3351 TALER_B2S (&coin_info->coin_pub)); 3362 TALER_B2S (&coin_info->coin_pub));
@@ -3380,6 +3391,7 @@ postgres_count_known_coins (void *cls,
3380 }; 3391 };
3381 enum GNUNET_DB_QueryStatus qs; 3392 enum GNUNET_DB_QueryStatus qs;
3382 3393
3394 (void) cls;
3383 qs = GNUNET_PQ_eval_prepared_singleton_select (session->conn, 3395 qs = GNUNET_PQ_eval_prepared_singleton_select (session->conn,
3384 "count_known_coins", 3396 "count_known_coins",
3385 params, 3397 params,
@@ -3473,14 +3485,7 @@ postgres_insert_deposit (void *cls,
3473 GNUNET_PQ_query_param_end 3485 GNUNET_PQ_query_param_end
3474 }; 3486 };
3475 3487
3476#if 0 3488 (void) cls;
3477 enum GNUNET_DB_QueryStatus qs;
3478
3479 if (0 > (qs = postgres_ensure_coin_known (cls,
3480 session,
3481 &deposit->coin)))
3482 return qs;
3483#endif
3484 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 3489 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
3485 "Inserting deposit to be executed at %s (%llu/%llu)\n", 3490 "Inserting deposit to be executed at %s (%llu/%llu)\n",
3486 GNUNET_STRINGS_absolute_time_to_string (deposit->wire_deadline), 3491 GNUNET_STRINGS_absolute_time_to_string (deposit->wire_deadline),
@@ -3515,6 +3520,7 @@ postgres_insert_refund (void *cls,
3515 GNUNET_PQ_query_param_end 3520 GNUNET_PQ_query_param_end
3516 }; 3521 };
3517 3522
3523 (void) cls;
3518 GNUNET_assert (GNUNET_YES == 3524 GNUNET_assert (GNUNET_YES ==
3519 TALER_amount_cmp_currency (&refund->refund_amount, 3525 TALER_amount_cmp_currency (&refund->refund_amount,
3520 &refund->refund_fee)); 3526 &refund->refund_fee));
@@ -3733,6 +3739,7 @@ postgres_get_melt_index (void *cls,
3733 GNUNET_PQ_result_spec_end 3739 GNUNET_PQ_result_spec_end
3734 }; 3740 };
3735 3741
3742 (void) cls;
3736 return GNUNET_PQ_eval_prepared_singleton_select (session->conn, 3743 return GNUNET_PQ_eval_prepared_singleton_select (session->conn,
3737 "get_melt_index", 3744 "get_melt_index",
3738 params, 3745 params,
@@ -3762,14 +3769,8 @@ postgres_insert_melt (void *cls,
3762 GNUNET_PQ_query_param_uint32 (&refresh_session->noreveal_index), 3769 GNUNET_PQ_query_param_uint32 (&refresh_session->noreveal_index),
3763 GNUNET_PQ_query_param_end 3770 GNUNET_PQ_query_param_end
3764 }; 3771 };
3765#if 0
3766 enum GNUNET_DB_QueryStatus qs;
3767 3772
3768 if (0 > (qs = postgres_ensure_coin_known (cls, 3773 (void) cls;
3769 session,
3770 &refresh_session->coin)))
3771 return qs;
3772#endif
3773 return GNUNET_PQ_eval_prepared_non_select (session->conn, 3774 return GNUNET_PQ_eval_prepared_non_select (session->conn,
3774 "insert_melt", 3775 "insert_melt",
3775 params); 3776 params);
@@ -3803,6 +3804,7 @@ postgres_insert_refresh_reveal (void *cls,
3803 const struct TALER_TransferPrivateKeyP *tprivs, 3804 const struct TALER_TransferPrivateKeyP *tprivs,
3804 const struct TALER_TransferPublicKeyP *tp) 3805 const struct TALER_TransferPublicKeyP *tp)
3805{ 3806{
3807 (void) cls;
3806 if (TALER_CNC_KAPPA != num_tprivs + 1) 3808 if (TALER_CNC_KAPPA != num_tprivs + 1)
3807 { 3809 {
3808 GNUNET_break (0); 3810 GNUNET_break (0);
@@ -3972,6 +3974,7 @@ postgres_get_refresh_reveal (void *cls,
3972 GNUNET_PQ_result_spec_end 3974 GNUNET_PQ_result_spec_end
3973 }; 3975 };
3974 3976
3977 (void) cls;
3975 /* First get the coins */ 3978 /* First get the coins */
3976 memset (&grctx, 3979 memset (&grctx,
3977 0, 3980 0,
@@ -4098,6 +4101,7 @@ free_link_data_list (void *cls,
4098{ 4101{
4099 struct TALER_EXCHANGEDB_LinkDataList *next; 4102 struct TALER_EXCHANGEDB_LinkDataList *next;
4100 4103
4104 (void) cls;
4101 while (NULL != ldl) 4105 while (NULL != ldl)
4102 { 4106 {
4103 next = ldl->next; 4107 next = ldl->next;
@@ -5090,6 +5094,7 @@ postgres_insert_aggregation_tracking (void *cls,
5090 GNUNET_PQ_query_param_end 5094 GNUNET_PQ_query_param_end
5091 }; 5095 };
5092 5096
5097 (void) cls;
5093 return GNUNET_PQ_eval_prepared_non_select (session->conn, 5098 return GNUNET_PQ_eval_prepared_non_select (session->conn,
5094 "insert_aggregation_tracking", 5099 "insert_aggregation_tracking",
5095 params); 5100 params);
@@ -5456,6 +5461,7 @@ postgres_wire_prepare_data_insert (void *cls,
5456 GNUNET_PQ_query_param_end 5461 GNUNET_PQ_query_param_end
5457 }; 5462 };
5458 5463
5464 (void) cls;
5459 return GNUNET_PQ_eval_prepared_non_select (session->conn, 5465 return GNUNET_PQ_eval_prepared_non_select (session->conn,
5460 "wire_prepare_data_insert", 5466 "wire_prepare_data_insert",
5461 params); 5467 params);
@@ -5481,6 +5487,7 @@ postgres_wire_prepare_data_mark_finished (void *cls,
5481 GNUNET_PQ_query_param_end 5487 GNUNET_PQ_query_param_end
5482 }; 5488 };
5483 5489
5490 (void) cls;
5484 return GNUNET_PQ_eval_prepared_non_select (session->conn, 5491 return GNUNET_PQ_eval_prepared_non_select (session->conn,
5485 "wire_prepare_data_mark_done", 5492 "wire_prepare_data_mark_done",
5486 params); 5493 params);
@@ -5522,6 +5529,7 @@ postgres_wire_prepare_data_get (void *cls,
5522 GNUNET_PQ_result_spec_end 5529 GNUNET_PQ_result_spec_end
5523 }; 5530 };
5524 5531
5532 (void) cls;
5525 qs = GNUNET_PQ_eval_prepared_singleton_select (session->conn, 5533 qs = GNUNET_PQ_eval_prepared_singleton_select (session->conn,
5526 "wire_prepare_data_get", 5534 "wire_prepare_data_get",
5527 params, 5535 params,
@@ -5610,6 +5618,7 @@ postgres_store_wire_transfer_out (void *cls,
5610 GNUNET_PQ_query_param_end 5618 GNUNET_PQ_query_param_end
5611 }; 5619 };
5612 5620
5621 (void) cls;
5613 return GNUNET_PQ_eval_prepared_non_select (session->conn, 5622 return GNUNET_PQ_eval_prepared_non_select (session->conn,
5614 "insert_wire_out", 5623 "insert_wire_out",
5615 params); 5624 params);
@@ -7231,6 +7240,7 @@ postgres_insert_payback_refresh_request (void *cls,
7231 }; 7240 };
7232 enum GNUNET_DB_QueryStatus qs; 7241 enum GNUNET_DB_QueryStatus qs;
7233 7242
7243 (void) cls;
7234 /* now store actual payback information */ 7244 /* now store actual payback information */
7235 qs = GNUNET_PQ_eval_prepared_non_select (session->conn, 7245 qs = GNUNET_PQ_eval_prepared_non_select (session->conn,
7236 "payback_refresh_insert", 7246 "payback_refresh_insert",
@@ -7270,6 +7280,7 @@ postgres_get_reserve_by_h_blind (void *cls,
7270 GNUNET_PQ_result_spec_end 7280 GNUNET_PQ_result_spec_end
7271 }; 7281 };
7272 7282
7283 (void) cls;
7273 return GNUNET_PQ_eval_prepared_singleton_select (session->conn, 7284 return GNUNET_PQ_eval_prepared_singleton_select (session->conn,
7274 "reserve_by_h_blind", 7285 "reserve_by_h_blind",
7275 params, 7286 params,
@@ -7303,6 +7314,7 @@ postgres_get_old_coin_by_h_blind (void *cls,
7303 GNUNET_PQ_result_spec_end 7314 GNUNET_PQ_result_spec_end
7304 }; 7315 };
7305 7316
7317 (void) cls;
7306 return GNUNET_PQ_eval_prepared_singleton_select (session->conn, 7318 return GNUNET_PQ_eval_prepared_singleton_select (session->conn,
7307 "old_coin_by_h_blind", 7319 "old_coin_by_h_blind",
7308 params, 7320 params,
@@ -7335,6 +7347,7 @@ postgres_insert_denomination_revocation (void *cls,
7335 GNUNET_PQ_query_param_end 7347 GNUNET_PQ_query_param_end
7336 }; 7348 };
7337 7349
7350 (void) cls;
7338 return GNUNET_PQ_eval_prepared_non_select (session->conn, 7351 return GNUNET_PQ_eval_prepared_non_select (session->conn,
7339 "denomination_revocation_insert", 7352 "denomination_revocation_insert",
7340 params); 7353 params);
@@ -7370,6 +7383,7 @@ postgres_get_denomination_revocation (void *cls,
7370 GNUNET_PQ_result_spec_end 7383 GNUNET_PQ_result_spec_end
7371 }; 7384 };
7372 7385
7386 (void) cls;
7373 return GNUNET_PQ_eval_prepared_singleton_select (session->conn, 7387 return GNUNET_PQ_eval_prepared_singleton_select (session->conn,
7374 "denomination_revocation_get", 7388 "denomination_revocation_get",
7375 params, 7389 params,
diff --git a/src/include/taler_testing_bank_lib.h b/src/include/taler_testing_bank_lib.h
index 1152c6297..57a7c0f9b 100644
--- a/src/include/taler_testing_bank_lib.h
+++ b/src/include/taler_testing_bank_lib.h
@@ -108,13 +108,12 @@ TALER_TESTING_has_in_name (const char *prog,
108 * operation. 108 * operation.
109 * @param account_no bank account number to ask the history for. 109 * @param account_no bank account number to ask the history for.
110 * @param direction which direction this operation is interested 110 * @param direction which direction this operation is interested
111 * @param ascending if GNUNET_YES, it ask the bank to return results 111 * @param ascending if #GNUNET_YES, it ask the bank to return results
112 * in chronological order. 112 * in chronological order.
113 * @param start_row_reference reference to a command that can 113 * @param start_row_reference reference to a command that can
114 * offer a row identifier, to be used as the starting row 114 * offer a row identifier, to be used as the starting row
115 * to accept in the result. 115 * to accept in the result.
116 * @param num_result how many rows we want in the result. 116 * @param num_results how many rows we want in the result.
117 *
118 * @return the command. 117 * @return the command.
119 */ 118 */
120struct TALER_TESTING_Command 119struct TALER_TESTING_Command
@@ -124,7 +123,7 @@ TALER_TESTING_cmd_bank_history (const char *label,
124 enum TALER_BANK_Direction direction, 123 enum TALER_BANK_Direction direction,
125 unsigned int ascending, 124 unsigned int ascending,
126 const char *start_row_reference, 125 const char *start_row_reference,
127 long long num_results); 126 unsigned long long num_results);
128 127
129 128
130/** 129/**
diff --git a/src/wire-plugins/plugin_wire_ebics.c b/src/wire-plugins/plugin_wire_ebics.c
index 5482762a3..1c74efd54 100644
--- a/src/wire-plugins/plugin_wire_ebics.c
+++ b/src/wire-plugins/plugin_wire_ebics.c
@@ -132,6 +132,14 @@ ebics_prepare_wire_transfer (void *cls,
132 TALER_WIRE_PrepareTransactionCallback psc, 132 TALER_WIRE_PrepareTransactionCallback psc,
133 void *psc_cls) 133 void *psc_cls)
134{ 134{
135 (void) cls;
136 (void) origin_account_section;
137 (void) destination_account_url;
138 (void) amount;
139 (void) exchange_base_url;
140 (void) wtid;
141 (void) psc;
142 (void) psc_cls;
135 GNUNET_break (0); // FIXME: not implemented 143 GNUNET_break (0); // FIXME: not implemented
136 return NULL; 144 return NULL;
137} 145}
@@ -148,6 +156,8 @@ static void
148ebics_prepare_wire_transfer_cancel (void *cls, 156ebics_prepare_wire_transfer_cancel (void *cls,
149 struct TALER_WIRE_PrepareHandle *pth) 157 struct TALER_WIRE_PrepareHandle *pth)
150{ 158{
159 (void) cls;
160 (void) pth;
151 GNUNET_break (0); // FIXME: not implemented 161 GNUNET_break (0); // FIXME: not implemented
152} 162}
153 163
@@ -169,6 +179,11 @@ ebics_execute_wire_transfer (void *cls,
169 TALER_WIRE_ConfirmationCallback cc, 179 TALER_WIRE_ConfirmationCallback cc,
170 void *cc_cls) 180 void *cc_cls)
171{ 181{
182 (void) cls;
183 (void) buf;
184 (void) buf_size;
185 (void) cc;
186 (void) cc_cls;
172 GNUNET_break (0); // FIXME: not implemented 187 GNUNET_break (0); // FIXME: not implemented
173 return NULL; 188 return NULL;
174} 189}
@@ -190,6 +205,8 @@ static void
190ebics_execute_wire_transfer_cancel (void *cls, 205ebics_execute_wire_transfer_cancel (void *cls,
191 struct TALER_WIRE_ExecuteHandle *eh) 206 struct TALER_WIRE_ExecuteHandle *eh)
192{ 207{
208 (void) cls;
209 (void) eh;
193 GNUNET_break (0); // FIXME: not implemented 210 GNUNET_break (0); // FIXME: not implemented
194} 211}
195 212
@@ -226,6 +243,14 @@ ebics_get_history (void *cls,
226 TALER_WIRE_HistoryResultCallback hres_cb, 243 TALER_WIRE_HistoryResultCallback hres_cb,
227 void *hres_cb_cls) 244 void *hres_cb_cls)
228{ 245{
246 (void) cls;
247 (void) account_section;
248 (void) direction;
249 (void) start_off;
250 (void) start_off_len;
251 (void) num_results;
252 (void) hres_cb;
253 (void) hres_cb_cls;
229 GNUNET_break (0); 254 GNUNET_break (0);
230 return NULL; 255 return NULL;
231} 256}
@@ -241,6 +266,8 @@ static void
241ebics_get_history_cancel (void *cls, 266ebics_get_history_cancel (void *cls,
242 struct TALER_WIRE_HistoryHandle *whh) 267 struct TALER_WIRE_HistoryHandle *whh)
243{ 268{
269 (void) cls;
270 (void) whh;
244 GNUNET_break (0); 271 GNUNET_break (0);
245} 272}
246 273
@@ -315,6 +342,11 @@ ebics_reject_transfer (void *cls,
315{ 342{
316 struct TALER_WIRE_RejectHandle *rh; 343 struct TALER_WIRE_RejectHandle *rh;
317 344
345 (void) account_section;
346 (void) start_off;
347 (void) start_off_len;
348 (void) rej_cb;
349 (void) rej_cb_cls;
318 GNUNET_break (0); /* not implemented, just a stub! */ 350 GNUNET_break (0); /* not implemented, just a stub! */
319 rh = GNUNET_new (struct TALER_WIRE_RejectHandle); 351 rh = GNUNET_new (struct TALER_WIRE_RejectHandle);
320 rh->rej_cb = rej_cb; 352 rh->rej_cb = rej_cb;
@@ -343,6 +375,7 @@ ebics_reject_transfer_cancel (void *cls,
343{ 375{
344 void *ret = rh->rej_cb_cls; 376 void *ret = rh->rej_cb_cls;
345 377
378 (void) cls;
346 GNUNET_SCHEDULER_cancel (rh->timeout_task); 379 GNUNET_SCHEDULER_cancel (rh->timeout_task);
347 GNUNET_free (rh); 380 GNUNET_free (rh);
348 return ret; 381 return ret;
diff --git a/src/wire-plugins/plugin_wire_template.c b/src/wire-plugins/plugin_wire_template.c
index 0d0e652a1..29c4553aa 100644
--- a/src/wire-plugins/plugin_wire_template.c
+++ b/src/wire-plugins/plugin_wire_template.c
@@ -84,6 +84,8 @@ static enum TALER_ErrorCode
84template_wire_validate (void *cls, 84template_wire_validate (void *cls,
85 const char *account_url) 85 const char *account_url)
86{ 86{
87 (void) cls;
88 (void) account_url;
87 GNUNET_break (0); 89 GNUNET_break (0);
88 return TALER_EC_NOT_IMPLEMENTED; 90 return TALER_EC_NOT_IMPLEMENTED;
89} 91}
@@ -114,6 +116,14 @@ template_prepare_wire_transfer (void *cls,
114 TALER_WIRE_PrepareTransactionCallback ptc, 116 TALER_WIRE_PrepareTransactionCallback ptc,
115 void *ptc_cls) 117 void *ptc_cls)
116{ 118{
119 (void) cls;
120 (void) origin_account_section;
121 (void) destination_account_url;
122 (void) amount;
123 (void) exchange_base_url;
124 (void) wtid;
125 (void) ptc;
126 (void) ptc_cls;
117 GNUNET_break (0); 127 GNUNET_break (0);
118 return NULL; 128 return NULL;
119} 129}
@@ -130,6 +140,8 @@ static void
130template_prepare_wire_transfer_cancel (void *cls, 140template_prepare_wire_transfer_cancel (void *cls,
131 struct TALER_WIRE_PrepareHandle *pth) 141 struct TALER_WIRE_PrepareHandle *pth)
132{ 142{
143 (void) cls;
144 (void) pth;
133 GNUNET_break (0); 145 GNUNET_break (0);
134} 146}
135 147
@@ -151,6 +163,11 @@ template_execute_wire_transfer (void *cls,
151 TALER_WIRE_ConfirmationCallback cc, 163 TALER_WIRE_ConfirmationCallback cc,
152 void *cc_cls) 164 void *cc_cls)
153{ 165{
166 (void) cls;
167 (void) buf;
168 (void) buf_size;
169 (void) cc;
170 (void) cc_cls;
154 GNUNET_break (0); 171 GNUNET_break (0);
155 return NULL; 172 return NULL;
156} 173}
@@ -172,6 +189,8 @@ static void
172template_execute_wire_transfer_cancel (void *cls, 189template_execute_wire_transfer_cancel (void *cls,
173 struct TALER_WIRE_ExecuteHandle *eh) 190 struct TALER_WIRE_ExecuteHandle *eh)
174{ 191{
192 (void) cls;
193 (void) eh;
175 GNUNET_break (0); 194 GNUNET_break (0);
176} 195}
177 196
@@ -208,6 +227,14 @@ template_get_history (void *cls,
208 TALER_WIRE_HistoryResultCallback hres_cb, 227 TALER_WIRE_HistoryResultCallback hres_cb,
209 void *hres_cb_cls) 228 void *hres_cb_cls)
210{ 229{
230 (void) cls;
231 (void) account_section;
232 (void) direction;
233 (void) start_off;
234 (void) start_off_len;
235 (void) num_results;
236 (void) hres_cb;
237 (void) hres_cb_cls;
211 GNUNET_break (0); 238 GNUNET_break (0);
212 return NULL; 239 return NULL;
213} 240}
@@ -223,6 +250,8 @@ static void
223template_get_history_cancel (void *cls, 250template_get_history_cancel (void *cls,
224 struct TALER_WIRE_HistoryHandle *whh) 251 struct TALER_WIRE_HistoryHandle *whh)
225{ 252{
253 (void) cls;
254 (void) whh;
226 GNUNET_break (0); 255 GNUNET_break (0);
227} 256}
228 257
@@ -254,6 +283,12 @@ template_reject_transfer (void *cls,
254 TALER_WIRE_RejectTransferCallback rej_cb, 283 TALER_WIRE_RejectTransferCallback rej_cb,
255 void *rej_cb_cls) 284 void *rej_cb_cls)
256{ 285{
286 (void) cls;
287 (void) account_section;
288 (void) start_off;
289 (void) start_off_len;
290 (void) rej_cb;
291 (void) rej_cb_cls;
257 GNUNET_break (0); 292 GNUNET_break (0);
258 return NULL; 293 return NULL;
259} 294}
@@ -275,6 +310,8 @@ static void *
275template_reject_transfer_cancel (void *cls, 310template_reject_transfer_cancel (void *cls,
276 struct TALER_WIRE_RejectHandle *rh) 311 struct TALER_WIRE_RejectHandle *rh)
277{ 312{
313 (void) cls;
314 (void) rh;
278 GNUNET_break (0); 315 GNUNET_break (0);
279 return NULL; 316 return NULL;
280} 317}