From: Christophe Jaillet Date: Sun, 15 Nov 2020 16:50:03 +0000 (+0000) Subject: Fix an harmless warning spoted by gcc 10 and -Werror=discarded-qualifiers X-Git-Tag: 2.5.0-alpha2-ci-test-only~1146 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fb5cc1c7338ef8f4d4b3b96126dfe67bd4e67b1;p=thirdparty%2Fapache%2Fhttpd.git Fix an harmless warning spoted by gcc 10 and -Werror=discarded-qualifiers git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1883452 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/log.c b/server/log.c index 1a32ebb2d95..baa0b690438 100644 --- a/server/log.c +++ b/server/log.c @@ -1875,8 +1875,8 @@ AP_DECLARE(void) ap_close_piped_log(piped_log *pl) AP_DECLARE(const char *) ap_parse_log_level(const char *str, int *val) { - char *err = "Log level keyword must be one of emerg/alert/crit/error/warn/" - "notice/info/debug/trace1/.../trace8"; + const char *err = "Log level keyword must be one of emerg/alert/crit/error/" + "warn/notice/info/debug/trace1/.../trace8"; int i = 0; if (str == NULL)