From 0a5f7424660e404e5fd0361b9331d154acf01d6c Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 20 Oct 2008 13:53:23 +0000 Subject: Marked all unused args on non-W32 platforms. --- common/audit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'common/audit.c') 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 -- cgit v1.2.3