gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: -fix compiler warnings


From: gnunet
Subject: [taler-exchange] branch master updated: -fix compiler warnings
Date: Mon, 28 Oct 2024 11:54:07 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 023b3aa14 -fix compiler warnings
023b3aa14 is described below

commit 023b3aa143129d1611f97dcf807389db2d1469b6
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Oct 28 11:54:05 2024 +0100

    -fix compiler warnings
---
 src/auditordb/test_auditordb.c             |   5 +-
 src/auditordb/test_auditordb_checkpoints.c | 104 ++++++++++++++++-------------
 src/testing/test_bank_api_twisted.c        |   4 +-
 3 files changed, 62 insertions(+), 51 deletions(-)

diff --git a/src/auditordb/test_auditordb.c b/src/auditordb/test_auditordb.c
index c859e7239..d7f1a2262 100644
--- a/src/auditordb/test_auditordb.c
+++ b/src/auditordb/test_auditordb.c
@@ -341,12 +341,11 @@ run (void *cls)
   }
 
   {
-    GNUNET_log (GNUNET_ERROR_TYPE_INFO,
-                "Test: insert_denomination_balance\n");
-
     struct TALER_AUDITORDB_DenominationCirculationData dcd;
     struct TALER_AUDITORDB_DenominationCirculationData dcd2;
 
+    GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+                "Test: insert_denomination_balance\n");
     GNUNET_assert (GNUNET_OK ==
                    TALER_string_to_amount (CURRENCY ":12.345678",
                                            &dcd.denom_balance));
diff --git a/src/auditordb/test_auditordb_checkpoints.c 
b/src/auditordb/test_auditordb_checkpoints.c
index 2000a674a..2fc9bcded 100644
--- a/src/auditordb/test_auditordb_checkpoints.c
+++ b/src/auditordb/test_auditordb_checkpoints.c
@@ -178,56 +178,68 @@ run (void *cls)
    * Test2 = 123
    * Test3 = 245
    * Let's make sure that's the case! */
-  uint64_t value;
-  uint64_t valueNX;
-  uint64_t value3;
-  GNUNET_assert (
-    3 ==
-    plugin->get_auditor_progress (
-      plugin->cls,
-      "Test",
-      &value,
-      "TestNX",
-      &valueNX,
-      "Test3",
-      &value3,
-      NULL)
-    );
-  GNUNET_assert (value == 42);
-  GNUNET_assert (valueNX == 0);
-  GNUNET_assert (value3 == 245);
+  {
+    uint64_t value;
+    uint64_t valueNX;
+    uint64_t value3;
 
+    GNUNET_assert (
+      3 ==
+      plugin->get_auditor_progress (
+        plugin->cls,
+        "Test",
+        &value,
+        "TestNX",
+        &valueNX,
+        "Test3",
+        &value3,
+        NULL)
+      );
+    GNUNET_assert (value == 42);
+    GNUNET_assert (valueNX == 0);
+    GNUNET_assert (value3 == 245);
+  }
   /* Ensure the rest are also at their expected values */
-  GNUNET_assert (
-    GNUNET_DB_STATUS_SUCCESS_ONE_RESULT ==
-    plugin->get_auditor_progress (
-      plugin->cls,
-      "Test2",
-      &value,
-      NULL)
-    );
-  GNUNET_assert (value == 123);
-  GNUNET_assert (
-    GNUNET_DB_STATUS_SUCCESS_ONE_RESULT ==
-    plugin->get_auditor_progress (
-      plugin->cls,
-      "Test3",
-      &value,
-      NULL)
-    );
-  GNUNET_assert (value == 245);
+  {
+    uint64_t value;
 
-  /* Try fetching value that does not exist */
-  GNUNET_assert (
-    GNUNET_DB_STATUS_SUCCESS_ONE_RESULT ==
-    plugin->get_auditor_progress (
-      plugin->cls,
-      "TestNX",
-      &value,
-      NULL)
-    );
-  GNUNET_assert (0 == value);
+    GNUNET_assert (
+      GNUNET_DB_STATUS_SUCCESS_ONE_RESULT ==
+      plugin->get_auditor_progress (
+        plugin->cls,
+        "Test2",
+        &value,
+        NULL)
+      );
+    GNUNET_assert (value == 123);
+  }
+  {
+    uint64_t value;
 
+    GNUNET_assert (
+      GNUNET_DB_STATUS_SUCCESS_ONE_RESULT ==
+      plugin->get_auditor_progress (
+        plugin->cls,
+        "Test3",
+        &value,
+        NULL)
+      );
+    GNUNET_assert (value == 245);
+  }
+  {
+    uint64_t value;
+
+    /* Try fetching value that does not exist */
+    GNUNET_assert (
+      GNUNET_DB_STATUS_SUCCESS_ONE_RESULT ==
+      plugin->get_auditor_progress (
+        plugin->cls,
+        "TestNX",
+        &value,
+        NULL)
+      );
+    GNUNET_assert (0 == value);
+  }
 
   /* Test inserting a blank value, should tell us one result */
   GNUNET_assert (
diff --git a/src/testing/test_bank_api_twisted.c 
b/src/testing/test_bank_api_twisted.c
index 038ec8a1f..80b8b54de 100644
--- a/src/testing/test_bank_api_twisted.c
+++ b/src/testing/test_bank_api_twisted.c
@@ -94,12 +94,12 @@ run (void *cls,
   {
   case TALER_TESTING_BS_FAKEBANK:
     exchange_auth_twisted.wire_gateway_url
-      = "http://localhost:8888/accounts/2/taler-wire-gateway/";;
+      = (char *) "http://localhost:8888/accounts/2/taler-wire-gateway/";;
     systype = "-f";
     break;
   case TALER_TESTING_BS_IBAN:
     exchange_auth_twisted.wire_gateway_url
-      = "http://localhost:8888/accounts/Exchange/taler-wire-gateway/";;
+      = (char *) "http://localhost:8888/accounts/Exchange/taler-wire-gateway/";;
     systype = "-b";
     break;
   }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]