From ec425400e64e561fb3e0acd75b9df180b0777f65 Mon Sep 17 00:00:00 2001 From: Jim Jagielski Date: Fri, 9 Nov 2012 14:04:22 +0000 Subject: [PATCH] Remove warnings mod_speling.c:400:41: warning: data argument not used by format string [-Wformat-extra-args] r->uri, nuri, ref); mod_speling.c:508:53: warning: data argument not used by format string [-Wformat-extra-args] r->uri, candidates->nelts, ref); git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1407460 13f79535-47bb-0310-9956-ffa450edef68 --- modules/mappers/mod_speling.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/mappers/mod_speling.c b/modules/mappers/mod_speling.c index b1c75d01f2..c520aa1c49 100644 --- a/modules/mappers/mod_speling.c +++ b/modules/mappers/mod_speling.c @@ -396,8 +396,9 @@ static int check_speling(request_rec *r) ap_log_rerror(APLOG_MARK, APLOG_INFO, APR_SUCCESS, r, ref ? "Fixed spelling: %s to %s from %s" - : "Fixed spelling: %s to %s", - r->uri, nuri, ref); + : "Fixed spelling: %s to %s%s", + r->uri, nuri, + (ref ? ref : "")); return HTTP_MOVED_PERMANENTLY; } @@ -504,8 +505,9 @@ static int check_speling(request_rec *r) ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, ref ? "Spelling fix: %s: %d candidates from %s" - : "Spelling fix: %s: %d candidates", - r->uri, candidates->nelts, ref); + : "Spelling fix: %s: %d candidates%s", + r->uri, candidates->nelts, + (ref ? ref : "")); return HTTP_MULTIPLE_CHOICES; } -- 2.40.0