[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: Fix more warnings
From: |
gnunet |
Subject: |
[gnunet] branch master updated: Fix more warnings |
Date: |
Thu, 05 Oct 2023 10:23:50 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new d5d41bb24 Fix more warnings
d5d41bb24 is described below
commit d5d41bb248610f3381846ceb7d4c72e1776a35e3
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Thu Oct 5 10:23:46 2023 +0200
Fix more warnings
---
meson.build | 1 +
src/dhtu/plugin_dhtu_gnunet.c | 10 +++-------
src/include/gnunet_bandwidth_lib.h | 4 ----
src/transport/transport-testing2.c | 14 ++++++--------
4 files changed, 10 insertions(+), 19 deletions(-)
diff --git a/meson.build b/meson.build
index fe250f8a8..f411a71aa 100644
--- a/meson.build
+++ b/meson.build
@@ -109,6 +109,7 @@ if host_machine.system() == 'darwin'
add_project_arguments('-D_APPLE_C_SOURCE', language : 'c')
add_project_arguments('-D__APPLE_USE_RFC_3542', language : 'c')
add_project_arguments('-fno-common', language : 'c')
+ add_project_link_arguments (['-Wl,-no_fixup_chains'], language: 'c')
endif
diff --git a/src/dhtu/plugin_dhtu_gnunet.c b/src/dhtu/plugin_dhtu_gnunet.c
index 2c1be6e36..75f466916 100644
--- a/src/dhtu/plugin_dhtu_gnunet.c
+++ b/src/dhtu/plugin_dhtu_gnunet.c
@@ -233,7 +233,6 @@ gnunet_hold (void *cls,
{
struct Plugin *plugin = cls;
struct GNUNET_DHTU_PreferenceHandle *ph;
- struct GNUNET_BANDWIDTH_Value32NBO bw;
ph = GNUNET_new (struct GNUNET_DHTU_PreferenceHandle);
ph->target = target;
@@ -247,7 +246,7 @@ gnunet_hold (void *cls,
= GNUNET_TRANSPORT_application_suggest (plugin->transport,
&target->pid,
GNUNET_MQ_PRIO_BEST_EFFORT,
- bw);
+ GNUNET_BANDWIDTH_ZERO);
return ph;
}
@@ -263,7 +262,6 @@ gnunet_drop (struct GNUNET_DHTU_PreferenceHandle *ph)
{
struct GNUNET_DHTU_Target *target = ph->target;
struct Plugin *plugin = target->plugin;
- struct GNUNET_BANDWIDTH_Value32NBO bw;
GNUNET_CONTAINER_DLL_remove (target->ph_head,
target->ph_tail,
@@ -279,7 +277,7 @@ gnunet_drop (struct GNUNET_DHTU_PreferenceHandle *ph)
= GNUNET_TRANSPORT_application_suggest (plugin->transport,
&target->pid,
GNUNET_MQ_PRIO_BEST_EFFORT,
- bw);
+ GNUNET_BANDWIDTH_ZERO);
}
@@ -410,7 +408,6 @@ peerinfo_cb (void *cls,
{
struct Plugin *plugin = cls;
struct GNUNET_HELLO_Builder *builder;
- char *addr;
if (NULL == hello)
return;
@@ -529,7 +526,6 @@ libgnunet_plugin_dhtu_gnunet_done (void *cls)
{
struct GNUNET_DHTU_PluginFunctions *api = cls;
struct Plugin *plugin = api->cls;
- struct HelloHandle *hh;
if (NULL != plugin->nse)
GNUNET_NSE_disconnect (plugin->nse);
@@ -573,8 +569,8 @@ libgnunet_plugin_dhtu_gnunet_init (void *cls)
GNUNET_MQ_handler_end ()
};
- plugin->my_priv = GNUNET_CRYPTO_eddsa_key_create_from_configuration
(env->cfg);
plugin = GNUNET_new (struct Plugin);
+ plugin->my_priv = GNUNET_CRYPTO_eddsa_key_create_from_configuration
(env->cfg);
plugin->env = env;
api = GNUNET_new (struct GNUNET_DHTU_PluginFunctions);
api->cls = plugin;
diff --git a/src/include/gnunet_bandwidth_lib.h
b/src/include/gnunet_bandwidth_lib.h
index 7c854aab5..00a7d6c5d 100644
--- a/src/include/gnunet_bandwidth_lib.h
+++ b/src/include/gnunet_bandwidth_lib.h
@@ -18,10 +18,6 @@
SPDX-License-Identifier: AGPL3.0-or-later
*/
-#if !defined (__GNUNET_UTIL_LIB_H_INSIDE__)
-#error "Only <gnunet_util_lib.h> can be included directly."
-#endif
-
/**
* @addtogroup libgnunetutil
* Multi-function utilities library for GNUnet programs
diff --git a/src/transport/transport-testing2.c
b/src/transport/transport-testing2.c
index 11bb6c7d1..afa0b0ad4 100644
--- a/src/transport/transport-testing2.c
+++ b/src/transport/transport-testing2.c
@@ -268,7 +268,6 @@ notify_disconnect (void *cls,
int no = 0;
struct GNUNET_TRANSPORT_TESTING_PeerContext *p2 = NULL;
struct GNUNET_TRANSPORT_TESTING_ConnectRequest *cc;
- struct GNUNET_BANDWIDTH_Value32NBO bw;
p2 = find_peer_context (p->tth,
peer);
@@ -324,9 +323,9 @@ notify_disconnect (void *cls,
cc);
if (NULL == cc->ah_sh)
cc->ah_sh = GNUNET_TRANSPORT_application_suggest (cc->p1->ah,
- &p2->id,
-
GNUNET_MQ_PRIO_BEST_EFFORT,
- bw);
+ &p2->id,
+
GNUNET_MQ_PRIO_BEST_EFFORT,
+
GNUNET_BANDWIDTH_ZERO);
}
}
}
@@ -788,7 +787,6 @@ GNUNET_TRANSPORT_TESTING_connect_peers (struct
struct GNUNET_TRANSPORT_TESTING_Handle *tth = p1->tth;
struct GNUNET_TRANSPORT_TESTING_ConnectRequest *cc;
struct GNUNET_TRANSPORT_TESTING_ConnectRequest *ccn;
- struct GNUNET_BANDWIDTH_Value32NBO bw;
ccn = NULL;
for (cc = tth->cc_head; NULL != cc; cc = cc->next)
@@ -821,9 +819,9 @@ GNUNET_TRANSPORT_TESTING_connect_peers (struct
cc->tct = GNUNET_SCHEDULER_add_now (&offer_hello,
cc);
cc->ah_sh = GNUNET_TRANSPORT_application_suggest (cc->p1->ah,
- &p2->id,
-
GNUNET_MQ_PRIO_BEST_EFFORT,
- bw);
+ &p2->id,
+ GNUNET_MQ_PRIO_BEST_EFFORT,
+ GNUNET_BANDWIDTH_ZERO);
LOG (GNUNET_ERROR_TYPE_DEBUG,
"New connect request %p\n",
cc);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: Fix more warnings,
gnunet <=