about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-07-22 14:27:14 +0200
committerMichael Vetter <jubalh@iodoru.org>2019-07-22 14:27:14 +0200
commite540ccd50ee8d8b1a8e58049caa35bdb0e9da74f (patch)
tree47e00a0c51c9ea6467ae6580847ab463fc8ffe07 /src
parent137d128af27b5d37e7c5cd5f88d1cbcb9889e446 (diff)
downloadprofani-tty-e540ccd50ee8d8b1a8e58049caa35bdb0e9da74f.tar.gz
Remove dead assignments
Diffstat (limited to 'src')
-rw-r--r--src/omemo/omemo.c2
-rw-r--r--src/ui/window.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/omemo/omemo.c b/src/omemo/omemo.c
index f82ad164..879a237a 100644
--- a/src/omemo/omemo.c
+++ b/src/omemo/omemo.c
@@ -389,7 +389,7 @@ omemo_start_sessions(void)
 {
     GSList *contacts = roster_get_contacts(ROSTER_ORD_NAME);
     if (contacts) {
-        GSList *curr = contacts;
+        GSList *curr;
         for (curr = contacts; curr != NULL; curr = g_slist_next(curr)){
             PContact contact = curr->data;
             const char *jid = p_contact_barejid(contact);
diff --git a/src/ui/window.c b/src/ui/window.c
index 93e5801c..80074fc3 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -1557,7 +1557,7 @@ _win_print_wrapped(WINDOW *win, const char *const message, size_t indent, int pa
             wordlen = utf8_display_len(word);
 
             int curx = getcurx(win);
-            int cury = getcury(win);
+            int cury;
             int maxx = getmaxx(win);
 
             // wrap required