diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-07-15 14:15:34 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-07-15 14:15:34 +0200 |
commit | 0a74c9cd713c49cf9bc071ec6758425a1464518c (patch) | |
tree | 7d4a97b4fe65934143a2a619400bf49fb9ea49d1 /src/backend | |
parent | eec18999238cf247043e9f9c093b5bcfa1eb87ea (diff) | |
download | merchant-0a74c9cd713c49cf9bc071ec6758425a1464518c.tar.gz merchant-0a74c9cd713c49cf9bc071ec6758425a1464518c.tar.bz2 merchant-0a74c9cd713c49cf9bc071ec6758425a1464518c.zip |
change to remove compiler warnings for switch() cases that cannot really happen
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-patch-products-ID.c | 3 | ||||
-rw-r--r-- | src/backend/taler-merchant-httpd_private-post-orders.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/backend/taler-merchant-httpd_private-patch-products-ID.c b/src/backend/taler-merchant-httpd_private-patch-products-ID.c index e8c08359..2e01b769 100644 --- a/src/backend/taler-merchant-httpd_private-patch-products-ID.c +++ b/src/backend/taler-merchant-httpd_private-patch-products-ID.c @@ -198,7 +198,8 @@ TMH_private_patch_products_ID (const struct TMH_RequestHandler *rh, product_id, &pd); { - MHD_RESULT ret; + MHD_RESULT ret = MHD_NO; + switch (qs) { case GNUNET_DB_STATUS_HARD_ERROR: diff --git a/src/backend/taler-merchant-httpd_private-post-orders.c b/src/backend/taler-merchant-httpd_private-post-orders.c index 33883f5f..0e06f7fa 100644 --- a/src/backend/taler-merchant-httpd_private-post-orders.c +++ b/src/backend/taler-merchant-httpd_private-post-orders.c @@ -928,8 +928,8 @@ merge_inventory (struct MHD_Connection *connection, &pd); if (qs <= 0) { - enum TALER_ErrorCode ec; - unsigned int http_status; + enum TALER_ErrorCode ec = TALER_EC_INTERNAL_INVARIANT_FAILURE; + unsigned int http_status = 0; switch (qs) { |