| Message ID | 20191110133525.6069-3-a@unstable.cc |
|---|---|
| State | Accepted |
| Headers |
Return-Path: <openvpn-devel-bounces@lists.sourceforge.net> Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director10.mail.ord1d.rsapps.net ([172.31.255.6]) by backend30.mail.ord1d.rsapps.net with LMTP id EGsKNH4SyF2vdAAAIUCqbw for <patchwork@openvpn.net>; Sun, 10 Nov 2019 08:37:02 -0500 Received: from proxy10.mail.iad3b.rsapps.net ([172.31.255.6]) by director10.mail.ord1d.rsapps.net with LMTP id 8K7UMX4SyF07PwAApN4f7A ; Sun, 10 Nov 2019 08:37:02 -0500 Received: from smtp40.gate.iad3b ([172.31.255.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by proxy10.mail.iad3b.rsapps.net with LMTP id oAtALX4SyF0lQAAA/F5p9A ; Sun, 10 Nov 2019 08:37:02 -0500 X-Spam-Threshold: 95 X-Spam-Score: 0 X-Spam-Flag: NO X-Virus-Scanned: OK X-Orig-To: openvpnslackdevel@openvpn.net X-Originating-Ip: [216.105.38.7] Authentication-Results: smtp40.gate.iad3b.rsapps.net; iprev=pass policy.iprev="216.105.38.7"; spf=pass smtp.mailfrom="openvpn-devel-bounces@lists.sourceforge.net" smtp.helo="lists.sourceforge.net"; dkim=fail (signature verification failed) header.d=sourceforge.net; dkim=fail (signature verification failed) header.d=sf.net; dmarc=none (p=nil; dis=none) header.from=unstable.cc X-Suspicious-Flag: YES X-Classification-ID: 2d292918-03bf-11ea-a718-5254000cc6d4-1-1 Received: from [216.105.38.7] ([216.105.38.7:41072] helo=lists.sourceforge.net) by smtp40.gate.iad3b.rsapps.net (envelope-from <openvpn-devel-bounces@lists.sourceforge.net>) (ecelerity 4.2.38.62370 r(:)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id 85/D9-19038-E7218CD5; Sun, 10 Nov 2019 08:37:02 -0500 Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from <openvpn-devel-bounces@lists.sourceforge.net>) id 1iTnNs-0005UO-AL; Sun, 10 Nov 2019 13:36:04 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from <a@unstable.cc>) id 1iTnNr-0005U1-1q for openvpn-devel@lists.sourceforge.net; Sun, 10 Nov 2019 13:36:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=jV3pgZhW9XzXyIMbofhAx5ksA2GuQ17uR//NOxqgl6c=; b=KNNDBBJyjgXHTbI7C728LLMtDP MgccnRKJAiEY7mfXdpGE3O0XSMrTVZTJeWMDQTP3ZoK48d6ly3I8UtRqlijW8hzI+/FTK1r7dfukw Filqmscaupalh8MM6XwVZEae4Fr5LroMA31/MgO4vCLtt+ncp/uA8jcgt7F1YrKVAX70=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=jV3pgZhW9XzXyIMbofhAx5ksA2GuQ17uR//NOxqgl6c=; b=dDvkeESK9gtfVOxXMnyxaGMK9n gazqnS0xYIhxofKgu7EBd3cMOgL+H0Gi8YAyhApNV/8R7HzKbGlq80buIjsAi2QOPB3at7mMJj/Bt 5bxbkR7qR2qY7rsThktbt7o6tTEYoWWjKxn+1W6Hv3KGyWVcnbXfAMujN0a3Y/76lb9w=; Received: from s2.neomailbox.net ([5.148.176.60]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1iTnNp-00DAOM-26 for openvpn-devel@lists.sourceforge.net; Sun, 10 Nov 2019 13:36:03 +0000 From: Antonio Quartulli <a@unstable.cc> To: openvpn-devel@lists.sourceforge.net Date: Sun, 10 Nov 2019 14:35:25 +0100 Message-Id: <20191110133525.6069-3-a@unstable.cc> In-Reply-To: <20191110133525.6069-1-a@unstable.cc> References: <20191110133525.6069-1-a@unstable.cc> MIME-Version: 1.0 X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [5.148.176.60 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 AWL AWL: Adjusted score from AWL reputation of From: address X-Headers-End: 1iTnNp-00DAOM-26 Subject: [Openvpn-devel] [PATCH 3/3] travis: compile with -Werror on Linux X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: <openvpn-devel.lists.sourceforge.net> List-Unsubscribe: <https://lists.sourceforge.net/lists/options/openvpn-devel>, <mailto:openvpn-devel-request@lists.sourceforge.net?subject=unsubscribe> List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=openvpn-devel> List-Post: <mailto:openvpn-devel@lists.sourceforge.net> List-Help: <mailto:openvpn-devel-request@lists.sourceforge.net?subject=help> List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/openvpn-devel>, <mailto:openvpn-devel-request@lists.sourceforge.net?subject=subscribe> Cc: Antonio Quartulli <a@unstable.cc> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox |
| Series |
[Openvpn-devel,1/3] auth_token_kt: ensure key_type object is initialized
|
|
Commit Message
Antonio Quartulli
Nov. 10, 2019, 2:35 a.m. UTC
Signed-off-by: Antonio Quartulli <a@unstable.cc>
---
.travis/build-check.sh | 1 +
1 file changed, 1 insertion(+)
Comments
Am 10.11.19 um 14:35 schrieb Antonio Quartulli: > Signed-off-by: Antonio Quartulli <a@unstable.cc> > --- > .travis/build-check.sh | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/.travis/build-check.sh b/.travis/build-check.sh > index 039a7dcf..250bb454 100755 > --- a/.travis/build-check.sh > +++ b/.travis/build-check.sh > @@ -8,6 +8,7 @@ fi > > if [ "${TRAVIS_OS_NAME}" = "linux" ]; then > export LD_LIBRARY_PATH="${PREFIX}/lib:${LD_LIBRARY_PATH:-}" > + export CFLAGS="${CFLAGS} -Werror" > fi > > if [ "${TRAVIS_OS_NAME}" = "osx" ]; then > I assume that you compile tested this, so Acked-By: Arne Schwabe <arne@rfc2549.org>
Hi, On Sun, Nov 10, 2019 at 8:36 AM Antonio Quartulli <a@unstable.cc> wrote: > Signed-off-by: Antonio Quartulli <a@unstable.cc> > --- > .travis/build-check.sh | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/.travis/build-check.sh b/.travis/build-check.sh > index 039a7dcf..250bb454 100755 > --- a/.travis/build-check.sh > +++ b/.travis/build-check.sh > @@ -8,6 +8,7 @@ fi > > if [ "${TRAVIS_OS_NAME}" = "linux" ]; then > export LD_LIBRARY_PATH="${PREFIX}/lib:${LD_LIBRARY_PATH:-}" > + export CFLAGS="${CFLAGS} -Werror" > fi > If this is only for linux (and travis), and works with the current code base, probably its fine. But it seems it may also affect mingw builds on travis. I would resist the temptation to add -Werror in general and to Windows cross-build in particular. Not all warnings can be fixed easily. Often the only option is to hide the warning (e.g, by adding a cast) which imo is not always a good strategy. -Werror just forces one's hand to use tricks that hide warnings. Selva <div dir="ltr"><div>Hi,</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Nov 10, 2019 at 8:36 AM Antonio Quartulli <a@unstable.cc> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Signed-off-by: Antonio Quartulli <a@unstable.cc><br> ---<br> .travis/build-check.sh | 1 +<br> 1 file changed, 1 insertion(+)<br> <br> diff --git a/.travis/build-check.sh b/.travis/build-check.sh<br> index 039a7dcf..250bb454 100755<br> --- a/.travis/build-check.sh<br> +++ b/.travis/build-check.sh<br> @@ -8,6 +8,7 @@ fi<br> <br> if [ "${TRAVIS_OS_NAME}" = "linux" ]; then<br> export LD_LIBRARY_PATH="${PREFIX}/lib:${LD_LIBRARY_PATH:-}"<br> + export CFLAGS="${CFLAGS} -Werror"<br> fi<br></blockquote><div><br></div><div>If this is only for linux (and travis), and works with the current code</div><div>base, probably its fine.</div><div><br></div><div>But it seems it may also affect mingw builds on travis. I would resist the</div><div>temptation to add -Werror in general and to Windows cross-build in particular.</div><div><br></div><div>Not all warnings can be fixed easily. Often the only option is to hide the</div><div>warning (e.g, by adding a cast) which imo is not always a good strategy.</div><div>-Werror just forces one's hand to use tricks that hide warnings.</div><div><br></div><div>Selva</div></div></div>
Hi, On Sun, Nov 10, 2019 at 11:48:16AM -0500, Selva Nair wrote: > But it seems it may also affect mingw builds on travis. I would resist the > temptation to add -Werror in general and to Windows cross-build in > particular. Yeah, we're not intending to. The plan is to have "default builds (no configure options) on Linux with sufficiently current C compilers" warning-free. Which can be achieved with the current code base. > Not all warnings can be fixed easily. Often the only option is to hide the > warning (e.g, by adding a cast) which imo is not always a good strategy. > -Werror just forces one's hand to use tricks that hide warnings. Right. Older systems will warn, oddball systems will warn, non-default build options will warn (and I take one "unused global variable" warning vs. "adding two lines #ifdef/#endif"). gert
Your patch has been applied to the master branch.
commit 1513489be632f6577021e3a0f51799b59c4ace6a
Author: Antonio Quartulli
Date: Sun Nov 10 14:35:25 2019 +0100
travis: compile with -Werror on Linux
Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <20191110133525.6069-3-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg19094.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
--
kind regards,
Gert Doering
Forgot to hit send on this, and probably this is only partially relevant now, but here goes. Hi On Sun, Nov 10, 2019 at 12:03 PM Gert Doering <gert@greenie.muc.de> wrote: > Hi, > > On Sun, Nov 10, 2019 at 11:48:16AM -0500, Selva Nair wrote: > > But it seems it may also affect mingw builds on travis. I would resist > the > > temptation to add -Werror in general and to Windows cross-build in > > particular. > > Yeah, we're not intending to. > But the patch does affect cross-compilation for Windows on linux. Unless restricted to a very small cross-section (say gcc x.y + linux) this is going to cause a lot of grief. Note that every check run by configure that succeeds with warnings will become mysterious error at build time. There may be other unexpected failures too. -Werror is never fit for production in my view. There is a reason why warnings are warnings. Just my 2c. Selva <div dir="ltr"><div>Forgot to hit send on this, and probably this is only partially relevant now, but here goes.</div><div><br></div><div>Hi</div><div><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Nov 10, 2019 at 12:03 PM Gert Doering <<a href="mailto:gert@greenie.muc.de" target="_blank">gert@greenie.muc.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br> <br> On Sun, Nov 10, 2019 at 11:48:16AM -0500, Selva Nair wrote:<br> > But it seems it may also affect mingw builds on travis. I would resist the<br> > temptation to add -Werror in general and to Windows cross-build in<br> > particular.<br> <br> Yeah, we're not intending to.<br></blockquote><div><br></div><div>But the patch does affect cross-compilation for Windows on linux.</div><div><br></div><div>Unless restricted to a very small cross-section (say gcc x.y + linux) this is going to cause a lot of grief. Note that every check run by configure that succeeds with warnings will become mysterious error at build time. There may be other unexpected failures too. -Werror is never fit for production in my view. There is a reason why warnings are warnings.</div><div><br></div><div>Just my 2c.</div><div><br></div><div>Selva</div></div></div>
Hi, On Sun, Nov 10, 2019 at 05:03:26PM -0500, Selva Nair wrote: > > the > > > temptation to add -Werror in general and to Windows cross-build in > > > particular. > > > > Yeah, we're not intending to. > > But the patch does affect cross-compilation for Windows on linux. That seems to have been an oversight in how to feed Travis what we want - I saw an update yesterday evening. > Unless restricted to a very small cross-section (say gcc x.y + linux) this > is going to cause a lot of grief. Note that every check run by configure > that succeeds with warnings will become mysterious error at build time. > There may be other unexpected failures too. -Werror is never fit for > production in my view. There is a reason why warnings are warnings. "gcc $current + linux" was the plan, and only do it in Travis, not do it in configure for general consumption. gert
Hi, On 11/11/2019 08:23, Gert Doering wrote: >> But the patch does affect cross-compilation for Windows on linux. > > That seems to have been an oversight in how to feed Travis what we want - > I saw an update yesterday evening. > >> Unless restricted to a very small cross-section (say gcc x.y + linux) this >> is going to cause a lot of grief. Note that every check run by configure >> that succeeds with warnings will become mysterious error at build time. >> There may be other unexpected failures too. -Werror is never fit for >> production in my view. There is a reason why warnings are warnings. > > "gcc $current + linux" was the plan, and only do it in Travis, not do > it in configure for general consumption. > Right - this was my mistake while creating this patch. A fix has been sent to the ml yesterday night. That should work as expected. However, note that Travis won't be 100% happy because some compilers don't have the -Wno-stringop-truncation we recently added and configure.ac is failing to detect that.... Cheers,
diff --git a/.travis/build-check.sh b/.travis/build-check.sh index 039a7dcf..250bb454 100755 --- a/.travis/build-check.sh +++ b/.travis/build-check.sh @@ -8,6 +8,7 @@ fi if [ "${TRAVIS_OS_NAME}" = "linux" ]; then export LD_LIBRARY_PATH="${PREFIX}/lib:${LD_LIBRARY_PATH:-}" + export CFLAGS="${CFLAGS} -Werror" fi if [ "${TRAVIS_OS_NAME}" = "osx" ]; then