Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 40A20200BD1 for ; Mon, 28 Nov 2016 20:40:53 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 3AE28160B0D; Mon, 28 Nov 2016 19:40:53 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 5FE10160B00 for ; Mon, 28 Nov 2016 20:40:52 +0100 (CET) Received: (qmail 54127 invoked by uid 500); 28 Nov 2016 19:40:51 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 54115 invoked by uid 99); 28 Nov 2016 19:40:51 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Nov 2016 19:40:51 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id EFC43C0040 for ; Mon, 28 Nov 2016 19:40:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.48 X-Spam-Level: ** X-Spam-Status: No, score=2.48 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=rowe-clan-net.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id BA1UzaVF9HKp for ; Mon, 28 Nov 2016 19:40:49 +0000 (UTC) Received: from mail-qt0-f171.google.com (mail-qt0-f171.google.com [209.85.216.171]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id EE8665F246 for ; Mon, 28 Nov 2016 19:40:48 +0000 (UTC) Received: by mail-qt0-f171.google.com with SMTP id w33so132916055qtc.3 for ; Mon, 28 Nov 2016 11:40:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rowe-clan-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=EvMiNalIs3x9CdvtYU+NrptDLoFDkdd08eIF4t/jHZU=; b=fC23bv8Rs8o8zA0ajr3ZpC4kyvRN3kVfMs5Qr6wxzYuvpWBXw4p5R7aDsFB5YQ2Ng5 Vc9FEvXWQ4NUmlvt9eFw1G3YfRUuFGLoA2zVMabUarPnUgN1Gg1yRGioai8wtMGJ9yTw vcmQRLsQkseDxI0Xv0yVD7NIYwGns+dlHRARqePiTBotlqvZafkwlWTXD+ko7P6EIXTx 4dKu7kgJYVfGFej8QWAdLnM0rQg3y4wvknGO8SieIejbSd2cKDUfSHRD3jP7AymzEcW7 FtmUdEWRW0ebgn+0ADZ40/mPIaqZZ5H3xvDcQ6RokzPhs5zsn4wFFEr5tQ42/hucsg9M JJ8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=EvMiNalIs3x9CdvtYU+NrptDLoFDkdd08eIF4t/jHZU=; b=MDJ4xxXcvnerUkOvsV3eDuOU1JOgNva87W4Hec9UoTNHErLEzNcwrkk1QqowDYDCO+ UqJ9g7yMbbCgL9roh/0PFTWzIskwFqvTjLv5Tv9eeCDlKYpO9eEID+8DgoDZ23NsYO4B YLstnv+u0xipoxL7LgmdTgYuAazZHPECICfl1xIKGstKSSfTqJJWKSEXFc1rPck7jaro Ik96FwbNhWhN1JzDp4maEnsNcgxU7CekyKlUksF1aKGL759CRx5IrUI9ci+zZl6rU7aL 3SaKP60qTPB8vXbselTL+4nESYFRsdh3JalVp/QR7A/1JTabMLuYpZoyI/mhix9PP2uC zWJw== X-Gm-Message-State: AKaTC02w0viNK/hv3pIrnkdrXsYcP0rEjqhOBDzImlO3iAq6E56s4riEFnzJZHHlsiJ7F037ne5x6Ktt7UCgDmW6 X-Received: by 10.200.46.148 with SMTP id h20mr22457043qta.62.1480362036629; Mon, 28 Nov 2016 11:40:36 -0800 (PST) MIME-Version: 1.0 Received: by 10.55.26.21 with HTTP; Mon, 28 Nov 2016 11:40:36 -0800 (PST) In-Reply-To: References: From: William A Rowe Jr Date: Mon, 28 Nov 2016 13:40:36 -0600 Message-ID: Subject: Re: Quieting warnings? To: httpd Content-Type: multipart/alternative; boundary=001a11c02c76552a38054261a5d5 archived-at: Mon, 28 Nov 2016 19:40:53 -0000 --001a11c02c76552a38054261a5d5 Content-Type: text/plain; charset=UTF-8 *) Fix warnings with new compilers, warnings treated as error in maintainer-mode, standard c-89 is enforced trunk patch: http://svn.apache.org/r1702948 http://svn.apache.org/r1759415 2.4.x patch: http://home.apache.org/~ylavic/patches/httpd-2.4.x-r1702948_and_co.patch +1: ylavic, jorton, jchampion: r1702948 doesn't quite work as advertised. -Werror is never added to CFLAGS because when combined with -Wstrict-prototypes, the AC_LANG_PROGRAM won't compile (it uses a bare main()). ylavic: Maybe the -Werror case could be handled later, for now this series avoids a lot of "warning: 'aplog_module_index' defined but not used [-Wunused-const-variable=]" thanks to AP_MAYBE_UNUSED. jchampion: Fine by me. I just think the dead code should be removed from the backport in the meantime, so people don't have a false sense of security. I usually just read on beyond patches that are 'under discussion'. STATUS isn't a good bidirectional communications mechanism. jchampion, did you have a proposed alternative since you felt strongly about this issue? Cheers, Bill On Mon, Nov 28, 2016 at 1:37 PM, William A Rowe Jr wrote: > Typical of a long batch of error noise on 2.4 HEAD (with the > http strict merge patch applied) in --enable-maintainer-mode... > > In file included from /home/wrowe/dev/httpd-2.4/modules/mappers/mod_vhost_ > alias.c:45:0: > /home/wrowe/dev/httpd-2.4/include/http_config.h:427:24: warning: > 'aplog_module_index' defined but not used [-Wunused-const-variable=] > static int * const aplog_module_index = &(foo##_module.module_index) > ^ > /home/wrowe/dev/httpd-2.4/include/http_config.h:437:5: note: in expansion > of macro 'APLOG_USE_MODULE' > APLOG_USE_MODULE(foo); \ > ^~~~~~~~~~~~~~~~ > /home/wrowe/dev/httpd-2.4/modules/mappers/mod_vhost_alias.c:447:1: note: > in expansion of macro 'AP_DECLARE_MODULE' > AP_DECLARE_MODULE(vhost_alias) = > ^~~~~~~~~~~~~~~~~ > > Has anyone investigated far enough for us to pacify gcc? > --001a11c02c76552a38054261a5d5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
=C2=A0 *) Fix warnings with new compilers, warnings t= reated as error
=C2=A0 =C2=A0 =C2=A0in maintainer-mode, standard = c-89 is enforced
=C2=A0 =C2=A0 =C2=A0trunk patch: http://svn.apache.org/r1702948
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 http://svn.apache.org/r1759415
=C2=A0 =C2=A0 =C2=A02.4.x patch: http://home.apache.org/~ylavic/= patches/httpd-2.4.x-r1702948_and_co.patch
=C2=A0 =C2=A0 =C2= =A0+1: ylavic, jorton,
=C2=A0 =C2=A0 =C2=A0jchampion: r1702948 do= esn't quite work as advertised. -Werror is never
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 added to CFLAGS because when = combined with -Wstrict-prototypes,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 the AC_LANG_PROGRAM won't compile (it uses = a bare main()).
=C2=A0 =C2=A0 =C2=A0ylavic: Maybe the -Werror cas= e could be handled later, for now this series
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0avoids a lot of "warning: 'aplog_mo= dule_index' defined but not
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0used [-Wunused-const-variable=3D]" thanks to AP_MAYBE= _UNUSED.
=C2=A0 =C2=A0 =C2=A0jchampion: Fine by me. I just think = the dead code should be removed from
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 the backport in the meantime, so people don'= ;t have a false sense
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 of security.

I usually just read on = beyond patches that are 'under discussion'.=C2=A0
STATUS = isn't a good bidirectional communications mechanism.

jchampion, did you have a proposed alternative since you felt
<= div>strongly about this issue?

Cheers,
<= br>
Bill

On Mon, Nov 28, 2016 at 1:37 PM, William A Rowe Jr <wrowe= @rowe-clan.net> wrote:
Typical of a long batch of error noise on 2.4 HEAD (with = the
http strict merge patch applied) in --enable-maintainer-mode.= ..

In file included from /home/wrowe/dev/httpd-2.4= /modules/mappers/mod_vhost_alias.c:45:0:
/home/wrowe/de= v/httpd-2.4/include/http_config.h:427:24: warning: 'aplog_module_i= ndex' defined but not used [-Wunused-const-variable=3D]
=C2= =A0 =C2=A0 =C2=A0static int * const aplog_module_index =3D &(foo##_modu= le.module_index)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^
/home/wrowe/dev/httpd-2.4/<= wbr>include/http_config.h:437:5: note: in expansion of macro 'APLOG_USE= _MODULE'
=C2=A0 =C2=A0 =C2=A0APLOG_USE_MODULE(foo); =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 \
=C2=A0 =C2=A0 =C2=A0^~~~~~~~~~~~~~~~
/home/wrowe/= dev/httpd-2.4/modules/mappers/mod_vhost_alias.c:447:1: note: in e= xpansion of macro 'AP_DECLARE_MODULE'
=C2=A0AP_DECLARE_MO= DULE(vhost_alias) =3D
=C2=A0^~~~~~~~~~~~~~~~~

=
Has anyone investigated far enough for us to pacify gcc?

--001a11c02c76552a38054261a5d5--