Browse Source

compiler shows with -Wall some warnings about unused code etc.

doc_update_sequoia
Lars Rohwedder 6 years ago
parent
commit
cf34e52822
3 changed files with 10 additions and 6 deletions
  1. +1
    -1
      src/map_asn1.h
  2. +4
    -4
      src/mime.c
  3. +5
    -1
      src/pgp_gpg.c

+ 1
- 1
src/map_asn1.h View File

@ -1,4 +1,4 @@
#pragma one
#pragma once
#include "pEpEngine.h"
#include "stringlist.h"


+ 4
- 4
src/mime.c View File

@ -646,14 +646,14 @@ static PEP_STATUS mime_encode_message_plain(
struct mailmime * submime = NULL;
int r;
PEP_STATUS status;
char *subject;
//char *subject;
char *plaintext;
char *htmltext;
assert(msg);
assert(result);
subject = (msg->shortmsg) ? msg->shortmsg : "pEp";
//subject = (msg->shortmsg) ? msg->shortmsg : "pEp"; // not used, yet.
plaintext = (msg->longmsg) ? msg->longmsg : "";
htmltext = msg->longmsg_formatted;
@ -739,13 +739,13 @@ static PEP_STATUS mime_encode_message_PGP_MIME(
struct mailmime_parameter * param;
int r;
PEP_STATUS status;
char *subject;
//char *subject;
char *plaintext;
assert(msg->attachments && msg->attachments->next &&
msg->attachments->next->value);
subject = (msg->shortmsg) ? msg->shortmsg : "pEp";
//subject = (msg->shortmsg) ? msg->shortmsg : "pEp"; // not used, yet.
plaintext = msg->attachments->next->value;
mime = part_multiple_new("multipart/encrypted");


+ 5
- 1
src/pgp_gpg.c View File

@ -357,7 +357,7 @@ PEP_STATUS pgp_decrypt_and_verify(
gpgme_data_type_t dt;
stringlist_t *_keylist = NULL;
int i_key = 0;
//int i_key = 0;
assert(session);
assert(ctext);
@ -1612,6 +1612,8 @@ typedef struct _revoke_state {
const char *reason_ref;
} revoke_state;
/*** unused?
static bool isemptystring(const char *str)
{
if (str == NULL)
@ -1624,6 +1626,8 @@ static bool isemptystring(const char *str)
return true;
}
***/
static gpgme_error_t revoke_fsm(
void *_handle,


Loading…
Cancel
Save