Message-ID: <78ef4493-ac68-4b3c-a902-11e792622740@...2108...> Date: Thu, 7 May 2026 17:10:59 +0200 MIME-Version: 1.0 References: <1777879369.971087242@...3037...> From: David Sommerseth Content-Language: en-US In-Reply-To: <1777879369.971087242@...3037...> Subject: Re: [Openvpn-devel] Fwd: [PATCH] netcfg: handle ParseFromString result for protobuf 34 (nodiscard) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: =?UTF-8?B?0JTQvNC40YLRgNC40Lkg0KDQvtC80LDQvdC+0LI=?= Cc: Openvpn-devel@lists.sourceforge.net On 04/05/2026 09:22, Дмитрий Романов via Openvpn-devel wrote: > -------- Пересылаемое сообщение -------- > От кого: Дмитрий Романов > > Кому: openvpn-devel > > Дата: Понедельник, 4 мая 2026, 10:19 +03:00 > Тема: [PATCH] netcfg: handle ParseFromString result for protobuf 34 > (nodiscard) >   >   > Hi, >   > Building openvpn3-linux v26 with protobuf 34.x and GCC 15 fails in > netcfg-dco.cpp: google::protobuf::MessageLite::ParseFromString is now > [[nodiscard]], and the project builds with -Werror, so ignoring the > return value becomes a hard error (-Werror=unused-result). >   > Check the return value and throw NetCfgException on parse failure, > consistent with other error handling in this file. >   > This should fix distributions that already ship protobuf 34 (e.g. Arch). >   > If there is an existing issue on Codeberg for this (e.g. related to > nodiscard / protobuf 34), please link this patch there. >   > Signed-off-by: Dmitriy Romanov  > Sorry it took time to resolve this. I've just pushed out an git master branch to all the repositories which includes this fix and a lot of other issues related to building OpenVPN 3 Linux. Your patch did not apply cleanly on my tree, so I had to redo it. But you're credited in the commit, together with other reporters of the same issue. Current git master commit: b8ac395171e6354aa2d27875b76ed9cbc44b99cd Codeberg: Radicle: rad:zN58oopqzrAkTregNZaRQpgg7x3c Radicle: GitLab: GitHub: -- kind regards, David Sommerseth OpenVPN Inc