aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2021-08-26 23:53:14 +0200
committerMatthias Andree <matthias.andree@gmx.de>2021-08-26 23:53:14 +0200
commit46a82e131538598179db3302169f48a962760327 (patch)
tree6d1301817f94cc5254174b0107d5a4f1e607e6a9
parent8517491d8558e202a33294ac61f2268ef802f03f (diff)
downloadfetchmail-46a82e131538598179db3302169f48a962760327.tar.gz
fetchmail-46a82e131538598179db3302169f48a962760327.tar.bz2
fetchmail-46a82e131538598179db3302169f48a962760327.zip
imap.c, report.c: remove or comment dead stores.
-rw-r--r--imap.c5
-rw-r--r--report.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/imap.c b/imap.c
index ca08e9b6..55998ae2 100644
--- a/imap.c
+++ b/imap.c
@@ -563,7 +563,10 @@ static int imap_getauth(int sock, struct query *ctl, char *greeting)
* Time to authenticate the user.
* Try the protocol variants that don't require passwords first.
*/
- ok = PS_AUTHFAIL;
+ ok = PS_AUTHFAIL; /* formally, never read,
+ but let's leave this in place as a safe default
+ for future maintenance */
+ (void)ok;
/* Yahoo hack - we'll just try ID if it was offered by the server,
* and IGNORE errors. */
diff --git a/report.c b/report.c
index 2db7d0a9..370e42a9 100644
--- a/report.c
+++ b/report.c
@@ -268,7 +268,7 @@ report_build (FILE *errfp, message, va_alist)
rep_ensuresize(n + 1);
VA_START(args, message);
- n = report_vbuild(message, args);
+ (void)report_vbuild(message, args);
va_end(args);
#else
{
@@ -333,7 +333,7 @@ report_complete (FILE *errfp, message, va_alist)
rep_ensuresize(n + 1);
VA_START(args, message);
- n = report_vbuild(message, args);
+ (void)report_vbuild(message, args);
va_end(args);
#else
report_build(errfp, message, a1, a2, a3, a4, a5, a6, a7, a8);