From: "flichtenheld (Code Review)"
Date: Tue, 30 Sep 2025 11:03:19 +0000
In-Reply-To:
References:
Reply-To: frank@...2641..., arne-openvpn@...1227...,
openvpn-devel@lists.sourceforge.net, max@...2606...
Message-ID: <627679047423a4293a660f34c0e27d2f2127709c-EmailReplacePatchSet-HTML@...2715...>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Content-Type: multipart/alternative; boundary="0/AcDaRb81E="; charset=UTF-8
Subject: [Openvpn-devel] [XS] Change in openvpn[master]: vlan: Limit
-Wconversion override to GCC 10 and older
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
To: plaisthos , MaxF
Cc: openvpn-devel
--0/AcDaRb81E=
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is currently required from: flichtenheld, plaisthos.
Hello MaxF, plaisthos,
I'd like you to reexamine a change. Please visit
http://gerrit.openvpn.net/c/openvpn/+/1179?usp=3Demail
to look at the new patch set (#9).
The change is no longer submittable: checks~ChecksSubmitRule is unsatisfied=
now.
Change subject: vlan: Limit -Wconversion override to GCC 10 and older
......................................................................
vlan: Limit -Wconversion override to GCC 10 and older
Only Debian 11 complains about this. This way we know
we can remove this at some point.
Change-Id: I73c46ac630834a8cf8894aaa2dcc429fbedd3db7
Signed-off-by: Frank Lichtenheld
---
M src/openvpn/vlan.c
1 file changed, 3 insertions(+), 2 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/79/1179/9
diff --git a/src/openvpn/vlan.c b/src/openvpn/vlan.c
index 3da470a..7a9fdaa 100644
--- a/src/openvpn/vlan.c
+++ b/src/openvpn/vlan.c
@@ -43,7 +43,8 @@
return ntohs(hdr->pcp_cfi_vid & OPENVPN_8021Q_MASK_VID);
}
-#if defined(__GNUC__) || defined(__clang__)
+/* old GCC complains about ~OPENVPN_8021Q_MASK_VID being "int" */
+#if defined(__GNUC__) && __GNUC__ < 11
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
@@ -61,7 +62,7 @@
(hdr->pcp_cfi_vid & ~OPENVPN_8021Q_MASK_VID) | (htons(vid) & OPENV=
PN_8021Q_MASK_VID);
}
-#if defined(__GNUC__) || defined(__clang__)
+#if defined(__GNUC__) && __GNUC__ < 11
#pragma GCC diagnostic pop
#endif
--
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: 9
Gerrit-Owner: flichtenheld
Gerrit-Reviewer: MaxF
Gerrit-Reviewer: plaisthos
Gerrit-CC: openvpn-devel
Gerrit-Attention: plaisthos
Gerrit-Attention: flichtenheld
--0/AcDaRb81E=
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is cur=
rently required from: flichtenheld, plaisthos.
flichtenheld uploaded patch set #9 to this change.
<=
p>View C=
hange
The change is no longer submittable: checks~ChecksSubmitRul=
e is unsatisfied now.
vlan: Limit -Wconversion override to=
GCC 10 and older
Only Debian 11 complains about this. This way we k=
now
we can remove this at some point.
Change-Id: I73c46ac630834a8=
cf8894aaa2dcc429fbedd3db7
Signed-off-by: Frank Lichtenheld <frank@...493...=
2641...>
---
M src/openvpn/vlan.c
1 file changed, 3 insertions(=
+), 2 deletions(-)
git pull ssh://gerrit.openvpn=
.net:29418/openvpn refs/changes/79/1179/9
diff --git a/src/openvpn/=
vlan.c b/src/openvpn/vlan.c
index 3da470a..7a9fdaa 100644=
span>
--- a/src/openvpn/vlan.c
+++ b/src/openvpn/v=
lan.c
@@ -43,7 +43,8 @@
return ntohs(h=
dr->pcp_cfi_vid & OPENVPN_8021Q_MASK_VID);
}=
-#if define=
d(__GNUC__) || defined(__clang__)
+/* old GCC complains about ~OPENVPN_8021Q_MASK_VID being &quo=
t;int" */
+#if d=
efined(__GNUC__) && __GNUC__ < 11
#pragma GCC d=
iagnostic push
#pragma GCC diagnostic ignored "-Wconv=
ersion"
#endif
@@ -61,7 +62,7 @@
(hdr->pcp_cfi_vid & ~OPENVPN_8021Q_MASK_VID) | =
(htons(vid) & OPENVPN_8021Q_MASK_VID);
}
-#if defined(__GNU=
C__) || defined(__clang__)
+#if defined(__GNUC__) && __GNUC__ < 11
#=
pragma GCC diagnostic pop
#endif
<=
br>
To view, visit change 1179. To unsubscribe, 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: 9
Gerrit-Owner: flichtenheld <frank@...2723...=
.>
Gerrit-Reviewer: MaxF <max@...2606...> <=
/div>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...=
.1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...=
ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...=
..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...=
41...>
=
--0/AcDaRb81E=--