warnings with clang
authorvb
Sun, 28 Dec 2014 17:31:52 +0100
changeset 367857c4a83b5f
parent 35 e623dc3645a3
child 37 7928e0e6eee9
warnings with clang
src/keymanagement.c
src/transport.c
     1.1 --- a/src/keymanagement.c	Sun Dec 28 12:34:14 2014 +0100
     1.2 +++ b/src/keymanagement.c	Sun Dec 28 17:31:52 2014 +0100
     1.3 @@ -262,7 +262,7 @@
     1.4  
     1.5      log_event(session, "keymanagement thread started", "pEp engine", NULL, NULL);
     1.6  
     1.7 -    while (identity = retrieve_next_identity(management)) {
     1.8 +    while ((identity = retrieve_next_identity(management))) {
     1.9          assert(identity->address);
    1.10          log_event(session, "do_keymanagement", "debug", identity->address, NULL);
    1.11          if (identity->me) {
     2.1 --- a/src/transport.c	Sun Dec 28 12:34:14 2014 +0100
     2.2 +++ b/src/transport.c	Sun Dec 28 17:31:52 2014 +0100
     2.3 @@ -42,6 +42,8 @@
     2.4      dup->lang[1] = src->lang[1];
     2.5      dup->lang[2] = 0;
     2.6      dup->me = src->me;
     2.7 +
     2.8 +    return dup;
     2.9  }
    2.10  
    2.11  identity_list *new_identity_list(const pEp_identity *ident)