diff options
author | Werner Koch <wk@gnupg.org> | 2008-10-20 15:53:23 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2008-10-20 15:53:23 +0200 |
commit | 0a5f7424660e404e5fd0361b9331d154acf01d6c (patch) | |
tree | b84fb5a994045e12eb326441d8c924094bd915cd /common/audit.c | |
parent | Fix a bug in estream_snprintf. Found by a failed t-gettime under Windows. (diff) | |
download | gnupg2-0a5f7424660e404e5fd0361b9331d154acf01d6c.tar.xz gnupg2-0a5f7424660e404e5fd0361b9331d154acf01d6c.zip |
Marked all unused args on non-W32 platforms.
Diffstat (limited to 'common/audit.c')
-rw-r--r-- | common/audit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/audit.c b/common/audit.c index 706012ebe..3e1970d8c 100644 --- a/common/audit.c +++ b/common/audit.c @@ -115,7 +115,9 @@ clear_helptags (audit_ctx_t ctx) static const char * event2str (audit_event_t event) { - int idx = eventstr_msgidxof (event); + /* We need the cast so that compiler does not complain about an + always true comparison (>= 0) for an unsigned value. */ + int idx = eventstr_msgidxof ((int)event); if (idx == -1) return "Unknown event"; else |