From: "cron2 (Code Review)" Date: Wed, 8 Oct 2025 11:27:15 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641..., max@...2606... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="MpGYv6hIL88="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: vlan: Remove -Wconversion override List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld , plaisthos , MaxF Cc: openvpn-devel --MpGYv6hIL88= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#12) to the change originally created b= y flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1179?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by cron2 Change subject: vlan: Remove -Wconversion override ...................................................................... vlan: Remove -Wconversion override Only Debian 11 (GCC 10) complains about this. We decided not to add work-arounds for GCC 10 and older and instead accept that they do not build -Werror clean. Change-Id: I73c46ac630834a8cf8894aaa2dcc429fbedd3db7 Signed-off-by: Frank Lichtenheld Acked-by: Gert Doering Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1179 Message-Id: <20251008105507.9997-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg33= 285.html Signed-off-by: Gert Doering --- M src/openvpn/vlan.c 1 file changed, 0 insertions(+), 9 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/79/1179/12 diff --git a/src/openvpn/vlan.c b/src/openvpn/vlan.c index 3da470a..a6a6e93 100644 --- a/src/openvpn/vlan.c +++ b/src/openvpn/vlan.c @@ -43,11 +43,6 @@ return ntohs(hdr->pcp_cfi_vid & OPENVPN_8021Q_MASK_VID); } -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wconversion" -#endif - /* * Set the VLAN Identifier (VID) in an IEEE 802.1Q header. * @@ -61,10 +56,6 @@ (hdr->pcp_cfi_vid & ~OPENVPN_8021Q_MASK_VID) | (htons(vid) & OPENV= PN_8021Q_MASK_VID); } -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic pop -#endif - /* * vlan_decapsulate - remove 802.1q header and return VID * -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1179?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: newpatchset Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I73c46ac630834a8cf8894aaa2dcc429fbedd3db7 Gerrit-Change-Number: 1179 Gerrit-PatchSet: 12 Gerrit-Owner: flichtenheld Gerrit-Reviewer: MaxF Gerrit-Reviewer: cron2 Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel --MpGYv6hIL88= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 upl= oaded patch set #12 to the change originally created by flichtenhe= ld.

View Change

The following approvals got outdated and were remov= ed: Code-Review+2 by cron2

vlan: Remove -Wconversion override<=
br>
Only Debian 11 (GCC 10) complains about this.
We decided not to a= dd work-arounds for GCC 10
and older and instead accept that they do not=
build -Werror clean.

Change-Id: I73c46ac630834a8cf8894aaa2dcc429= fbedd3db7
Signed-off-by: Frank Lichtenheld <frank@...2641...>
A= cked-by: Gert Doering <gert@...1296...>
Gerrit URL: https://gerrit= .openvpn.net/c/openvpn/+/1179
Message-Id: <20251008105507.9997-1-gert= @...1296...>
URL: https://www.mail-archive.com/openvpn-devel@...1466...= urceforge.net/msg33285.html
Signed-off-by: Gert Doering <gert@...1726...= ...>
---
M src/openvpn/vlan.c
1 file changed, 0 insertions(+), = 9 deletions(-)

git pull ssh://gerrit.openvpn.net=
:29418/openvpn refs/changes/79/1179/12
diff --git a/src/openvpn/vla=
n.c b/src/openvpn/vlan.c
index 3da470a..a6a6e93 100644
--- a/src/openvpn/vlan.c
+++ b/src/openvpn/vlan= .c
@@ -43,11 +43,6 @@
return ntohs(hdr= ->pcp_cfi_vid & OPENVPN_8021Q_MASK_VID);
}
-#if defined(= __GNUC__) || defined(__clang__)
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wconversion"
-#endif
-
/*
*= Set the VLAN Identifier (VID) in an IEEE 802.1Q header.
= *
@@ -61,10 +56,6 @@
(hdr->pcp_= cfi_vid & ~OPENVPN_8021Q_MASK_VID) | (htons(vid) & OPENVPN_8021Q_MA= SK_VID);
}

-#if defined(__GNUC__) || defined(__clang__)<= br>-#pragma GCC diagnostic pop
-#endif
-
/*
= * vlan_decapsulate - remove 802.1q header and return VID
= *

To view, visit change 1179. To unsubscrib= e, or for help writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I73c46ac630834a8cf8894aaa2dc= c429fbedd3db7
Gerrit-Change-Number: 1179
Gerrit-PatchSet: 12
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: MaxF <max@...2606...> <= /div>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
= --MpGYv6hIL88=--