Date: Tue, 28 Mar 2023 10:47:10 +0200 From: Frank Lichtenheld Message-ID: References: <20230327114937.28246-1-selva.nair@...277...> <139d5059-25b8-e968-2996-5b3bc225ba3b@...68...> MIME-Version: 1.0 In-Reply-To: Subject: Re: [Openvpn-devel] [PATCH] Make cert_data.h and test_cryptoapi/pkcs11.c MSVC compliant List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Content-Disposition: inline To: Matthias Andree Cc: Selva Nair , openvpn-devel@lists.sourceforge.net On Mon, Mar 27, 2023 at 09:45:53PM +0200, Matthias Andree wrote: > Am 27.03.23 um 16:45 schrieb Selva Nair: > > Hi, > > > > On Mon, Mar 27, 2023 at 9:59 AM Matthias Andree > > wrote: > > > > Am 27.03.23 um 13:49 schrieb selva.nair@...277...: > > > From: Selva Nair > > > > > > - Do not use non-literal initializers for static objects > > > - Replace empty initializer {} by {0} > > > > Should we go to a revision, I would suggest to not make something > > compliant to a compiler because that is assigning it way too much > > power > > and control. A terms such as "ready to be compiled with MSVC" or so > > would be in order, or making this code compliant with some wisely > > chosen > > version of the ISO 9899 standard, aka. standard C. > > > > > > In this case "MSVC compliant" was arguably a poor choice of words as > > what the change does is to avoid non-C99 constructs. However it made > > sense to refer to MSVC in the context of what prompted this patch. > > > > That said, in a cross-platform code base one often has to make changes > > to please compilers just to get things to build. > > I don't mind what we're doing here... just that I want to avoid the > impression as though MSVC were setting the standards. There's always > MinGW-GCC... GCC doesn't seem to care about any of this. Which doesn't really make it easier to write code that adheres to standards. Regards, -- Frank Lichtenheld