[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis-gtk] branch master updated: fix compiler warnings
From: |
gnunet |
Subject: |
[taler-anastasis-gtk] branch master updated: fix compiler warnings |
Date: |
Sun, 14 Mar 2021 17:13:50 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository anastasis-gtk.
The following commit(s) were added to refs/heads/master by this push:
new 27627b8 fix compiler warnings
27627b8 is described below
commit 27627b870836763a5c283b9189c0cea78dba0e95
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Sun Mar 14 17:13:47 2021 +0100
fix compiler warnings
---
m4/libtool.m4 | 4 ++--
po/POTFILES.in | 3 ++-
src/anastasis/anastasis-gtk_action.c | 12 +++++++++---
3 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/m4/libtool.m4 b/m4/libtool.m4
index a6d21ae..c4c0294 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -1071,11 +1071,11 @@ _LT_EOF
# to the OS version, if on x86, and 10.4, the deployment
# target defaults to 10.4. Don't you love it?
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
- 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
+ 10.0,*86*-darwin8*|10.0,*-darwin[[912]]*)
_lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10.[[012]][[,.]]*)
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined
${wl}suppress' ;;
- 10.*)
+ 10.*|11.*)
_lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
esac
;;
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 5ce1bf1..be38054 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -7,6 +7,8 @@ src/anastasis/anastasis-gtk_dispatch.c
src/anastasis/anastasis-gtk_handle-auth-delete-button-clicked.c
src/anastasis/anastasis-gtk_handle-auth-edit-provider-clicked.c
src/anastasis/anastasis-gtk_handle-backup-button-clicked.c
+src/anastasis/anastasis-gtk_handle-challenge-code.c
+src/anastasis/anastasis-gtk_handle-challenge-question.c
src/anastasis/anastasis-gtk_handle-continent-activated.c
src/anastasis/anastasis-gtk_handle-continent-unselected.c
src/anastasis/anastasis-gtk_handle-core-secret-changed.c
@@ -24,7 +26,6 @@ src/anastasis/anastasis-gtk_handle-secret-buttons.c
src/anastasis/anastasis-gtk_helper.c
src/anastasis/anastasis-gtk_io.c
src/anastasis/os_installation.c
-contrib/anastasis_gtk_about_window.glade
contrib/anastasis_gtk_auth_add_email.glade
contrib/anastasis_gtk_auth_add_post.glade
contrib/anastasis_gtk_auth_add_question.glade
diff --git a/src/anastasis/anastasis-gtk_action.c
b/src/anastasis/anastasis-gtk_action.c
index b0cb8f5..c4c27c7 100644
--- a/src/anastasis/anastasis-gtk_action.c
+++ b/src/anastasis/anastasis-gtk_action.c
@@ -1241,7 +1241,7 @@ action_challenge_selecting (void)
box);
json_array_foreach (challenges, index, challenge)
{
- GtkButton *b;
+ GtkWidget *b;
const char *instructions;
struct TALER_Amount cost;
struct GNUNET_JSON_Specification spec[] = {
@@ -1276,7 +1276,7 @@ action_challenge_selecting (void)
GNUNET_asprintf (&cost_str,
_("Price: %s"),
TALER_amount2s (&cost));
- gtk_widget_set_tooltip_text (GTK_WIDGET (b),
+ gtk_widget_set_tooltip_text (b,
cost_str);
GNUNET_free (cost_str);
}
@@ -1286,7 +1286,7 @@ action_challenge_selecting (void)
challenge,
NULL);
gtk_container_add (GTK_CONTAINER (box),
- GTK_WIDGET (b));
+ b);
}
AG_show ("anastasis_gtk_main_control_vbox");
@@ -1462,6 +1462,7 @@ action_challenge_solving (void)
return;
}
/* create dialog based on challenge type */
+ diag = NULL;
for (unsigned int i = 0; NULL != type_map[i].type; i++)
{
if (0 != strcmp (type_map[i].type,
@@ -1470,6 +1471,11 @@ action_challenge_solving (void)
diag = type_map[i].ctor (challenge);
break;
}
+ if (NULL == diag)
+ {
+ GNUNET_break (0);
+ return;
+ }
/* show dialog */
{
GtkWidget *toplevel;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-anastasis-gtk] branch master updated: fix compiler warnings,
gnunet <=