[exim-cvs] shut up bogus complaint of unused variable in new…

Top Page

Reply to this message
Author: Exim Git Commits Mailing List
Date:  
To: exim-cvs
Subject: [exim-cvs] shut up bogus complaint of unused variable in new ratelimit ACL work
Gitweb: http://git.exim.org/exim.git/commitdiff/3399bb60b83537c54021e5d0553612fe2f2cde39
Commit:     3399bb60b83537c54021e5d0553612fe2f2cde39
Parent:     d690cbdcc1eae1eb60e83caf6800f768b733dadd
Author:     Phil Pennock <pdp@???>
AuthorDate: Thu Oct 6 02:59:26 2011 -0400
Committer:  Phil Pennock <pdp@???>
CommitDate: Thu Oct 6 02:59:26 2011 -0400


    shut up bogus complaint of unused variable in new ratelimit ACL work
---
 doc/doc-txt/ChangeLog |    2 +-
 src/src/acl.c         |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog
index 9a518e9..1d95772 100644
--- a/doc/doc-txt/ChangeLog
+++ b/doc/doc-txt/ChangeLog
@@ -123,7 +123,7 @@ PP/11 match_* no longer expand right-hand-side by default.

PP/12 fix uninitialised greeting string from PP/03 (smtps client support).

-PP/13 shell and compiler warnings fixes for RC1-RC3 changes.
+PP/13 shell and compiler warnings fixes for RC1-RC4 changes.

 PP/14 fix log_write() format string regression from TF/03.
       Bugzilla 1152.  Patch from Dmitry Isaikin.
diff --git a/src/src/acl.c b/src/src/acl.c
index 8af5643..77fdc56 100644
--- a/src/src/acl.c
+++ b/src/src/acl.c
@@ -2340,6 +2340,7 @@ case RATE_PER_RCPT:
   anchor = &ratelimiters_cmd;
   break;
 default:
+  anchor = NULL; /* silence an "unused" complaint */
   log_write(0, LOG_MAIN|LOG_PANIC_DIE,
     "internal ACL error: unknown ratelimit mode %d", mode);
   break;