Not sure why the compiler is more picky here than on other inits, but
maybe it's "... = {2}" vs "... = {0}" (which means "all is 0", so the
actual element first in the struct does not matter).  Anyway, ".n = 2"
is what we want so there is no harm in writing that done :-) - and
the buildbots agree that all platform compilers are fine with it.

Your patch has been applied to the master branch.

commit 2a50daf5fe6c924c8d945b3d0455c9e282cd769f
Author: Frank Lichtenheld
Date:   Sat Jan 25 11:08:38 2025 +0100

     tls_crypt_v2_write_client_key_file: Fix missing-field-initializers 
compiler warning

     Signed-off-by: Frank Lichtenheld <fr...@lichtenheld.com>
     Acked-by: Gert Doering <g...@greenie.muc.de>
     Message-Id: <20250125100838.20796-1-g...@greenie.muc.de>
     URL: 
https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg30588.html
     Signed-off-by: Gert Doering <g...@greenie.muc.de>


--
kind regards,

Gert Doering



_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to