compiler shows with -Wall some warnings about unused code etc.
authorLars Rohwedder <roker@pep-project.org>
Tue, 07 Jun 2016 23:29:46 +0200
changeset 723be101850681e
parent 722 932c969958c8
child 724 dc030fe6ed20
compiler shows with -Wall some warnings about unused code etc.
src/map_asn1.h
src/mime.c
src/pgp_gpg.c
     1.1 --- a/src/map_asn1.h	Tue Jun 07 23:09:49 2016 +0200
     1.2 +++ b/src/map_asn1.h	Tue Jun 07 23:29:46 2016 +0200
     1.3 @@ -1,4 +1,4 @@
     1.4 -#pragma one
     1.5 +#pragma once
     1.6  
     1.7  #include "pEpEngine.h"
     1.8  #include "stringlist.h"
     2.1 --- a/src/mime.c	Tue Jun 07 23:09:49 2016 +0200
     2.2 +++ b/src/mime.c	Tue Jun 07 23:29:46 2016 +0200
     2.3 @@ -646,14 +646,14 @@
     2.4      struct mailmime * submime = NULL;
     2.5      int r;
     2.6      PEP_STATUS status;
     2.7 -    char *subject;
     2.8 +    //char *subject;
     2.9      char *plaintext;
    2.10      char *htmltext;
    2.11  
    2.12      assert(msg);
    2.13      assert(result);
    2.14  
    2.15 -    subject = (msg->shortmsg) ? msg->shortmsg : "pEp";
    2.16 +    //subject = (msg->shortmsg) ? msg->shortmsg : "pEp";  // not used, yet.
    2.17      plaintext = (msg->longmsg) ? msg->longmsg : "";
    2.18      htmltext = msg->longmsg_formatted;
    2.19  
    2.20 @@ -739,13 +739,13 @@
    2.21  	struct mailmime_parameter * param;
    2.22      int r;
    2.23      PEP_STATUS status;
    2.24 -    char *subject;
    2.25 +    //char *subject;
    2.26      char *plaintext;
    2.27  
    2.28      assert(msg->attachments && msg->attachments->next &&
    2.29              msg->attachments->next->value);
    2.30  
    2.31 -    subject = (msg->shortmsg) ? msg->shortmsg : "pEp";
    2.32 +    //subject = (msg->shortmsg) ? msg->shortmsg : "pEp"; // not used, yet.
    2.33      plaintext = msg->attachments->next->value;
    2.34  
    2.35      mime = part_multiple_new("multipart/encrypted");
     3.1 --- a/src/pgp_gpg.c	Tue Jun 07 23:09:49 2016 +0200
     3.2 +++ b/src/pgp_gpg.c	Tue Jun 07 23:29:46 2016 +0200
     3.3 @@ -357,7 +357,7 @@
     3.4      gpgme_data_type_t dt;
     3.5  
     3.6      stringlist_t *_keylist = NULL;
     3.7 -    int i_key = 0;
     3.8 +    //int i_key = 0;
     3.9  
    3.10      assert(session);
    3.11      assert(ctext);
    3.12 @@ -1612,6 +1612,8 @@
    3.13      const char *reason_ref;
    3.14  } revoke_state;
    3.15  
    3.16 +
    3.17 +/*** unused?
    3.18  static bool isemptystring(const char *str)
    3.19  {
    3.20      if (str == NULL)
    3.21 @@ -1624,6 +1626,8 @@
    3.22  
    3.23      return true;
    3.24  }
    3.25 +***/
    3.26 +
    3.27  
    3.28  static gpgme_error_t revoke_fsm(
    3.29          void *_handle,