From patchwork Sat May 1 03:06:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonio Quartulli X-Patchwork-Id: 1785 Return-Path: Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director15.mail.ord1d.rsapps.net ([172.30.191.6]) by backend30.mail.ord1d.rsapps.net with LMTP id ABr7DYxSjWBNFwAAIUCqbw (envelope-from ) for ; Sat, 01 May 2021 09:07:24 -0400 Received: from proxy11.mail.ord1d.rsapps.net ([172.30.191.6]) by director15.mail.ord1d.rsapps.net with LMTP id EF2jDYxSjWBofgAAIcMcQg (envelope-from ) for ; Sat, 01 May 2021 09:07:24 -0400 Received: from smtp29.gate.ord1d ([172.30.191.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by proxy11.mail.ord1d.rsapps.net with LMTPS id EEXWGoBSjWB7PwAAgKDEHA (envelope-from ) for ; Sat, 01 May 2021 09:07:12 -0400 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: smtp29.gate.ord1d.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: 2b3f03c2-aa7e-11eb-8c68-525400f257a9-1-1 Received: from [216.105.38.7] ([216.105.38.7:57482] helo=lists.sourceforge.net) by smtp29.gate.ord1d.rsapps.net (envelope-from ) (ecelerity 4.2.38.62370 r(:)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id 69/E7-29782-B825D806; Sat, 01 May 2021 09:07:23 -0400 Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.92.3) (envelope-from ) id 1lcpKR-0003Oj-JB; Sat, 01 May 2021 13:06:39 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) (envelope-from ) id 1lcpKP-0003Ob-2M for openvpn-devel@lists.sourceforge.net; Sat, 01 May 2021 13:06:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version :Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=N+0wCd/wh0d695uD2pnkaN0hyzDojFVygE7/fNnqu0I=; b=FK61EBT7R0fQpr5IgWrnPMtzsf QOJO72jN8lpTkEch34By7Pk+WuyDqoXao13/TID8x74bT3E/YyPmSaHw2uOWahEMEKVQZ+b/zjKbh sBAc41WhgIIA1XYZ7hVlWdZwqpV7fET064BRDTMW92ra/Gfdov/IgtHD+K/JyoIXIdWE=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=N+0wCd/wh0d695uD2pnkaN0hyzDojFVygE7/fNnqu0I=; b=C IzU4XsNbzrMyAfQBlGBhf9ZBBrkejgGPVrC17CCUvIpRpPO2F7wKDFbwtm+H9A1Fvbw//ucyGdq9u WfnKgPU3T7MC7piaV7QYzfDOFNiFEfQRqbw70p61/rZ7T6oc/a/V4lYSzX6vGSXEcy81v18gv1PMO YOhPde68Wtxs60s4=; 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 1lcpKI-000Up0-Pm for openvpn-devel@lists.sourceforge.net; Sat, 01 May 2021 13:06:37 +0000 From: Antonio Quartulli To: openvpn-devel@lists.sourceforge.net Date: Sat, 1 May 2021 15:06:37 +0200 Message-Id: <20210501130640.9330-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 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-Headers-End: 1lcpKI-000Up0-Pm Subject: [Openvpn-devel] [PATCH 0/3] windows: kill a couple of warnings X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Antonio Quartulli Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox When compiling with mingw32-w64 we still get a bunch of warnings. Some are easily fixable and therefore I thought about providing small patches addressing those. Remaining warnings are not "difficult" to fix, but rather not easy to be fixed cleanly while keeping the change compact. Note: I haven't compiled this with MSVC. Cheers, Antonio Quartulli (3): windows: use appropriate and portable format specifier for 64bit pointer windows: define variable only where used windows: list all enum values in switch block src/openvpn/common.h | 2 +- src/openvpn/run_command.c | 2 +- src/openvpnserv/interactive.c | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-)