Use hardening option to add only hardening flags
authorKirill Isakov <bootctl@gmail.com>
Thu, 28 Apr 2022 12:40:54 +0000 (18:40 +0600)
committerKirill Isakov <bootctl@gmail.com>
Thu, 28 Apr 2022 19:18:39 +0000 (01:18 +0600)
Compiler flags that enable warnings were hidden behind the 'hardening'
option. This was a direct port of the previous autoconf config, but it
probably makes sense to always show them as they have no effect on
compiler's output (unlike hardening flags which distributors might want
to alter or disable completely).

Also remove -fwrapv (which is enabled by -fno-strict-overflow) and fix
all new warnings we've added (like VLAs in libgcrypt code, so it should
now be buildable with MSVC in case anyone wishes to do it).


No differences found