]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Only add -Wno-stringop-truncation on supported compilers
authorArne Schwabe <arne@rfc2549.org>
Thu, 29 Jun 2023 21:56:08 +0000 (23:56 +0200)
committerGert Doering <gert@greenie.muc.de>
Sun, 2 Jul 2023 11:21:38 +0000 (13:21 +0200)
commiteb3cd5ea36f9bf235da7b8a51fd6ce29780f0e39
treeaca02568f657fddf5df95fa8cba7192134bc7d93
parent5dbec1c019d14880ae7bf364b062d3589c7fd9e7
Only add -Wno-stringop-truncation on supported compilers

The -Wno-stringop-truncation flag is only supported by some GCC versions
and not by Clang (macOS, FreeBSD) at all.

Move the includes to the top the file to have them available when running
the check_c_compiler_flag.

Change-Id: I452bc4ee935d13f8e9095d0a31805a3bbaff0cec
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Message-Id: <20230629215611.3292788-3-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg26791.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
CMakeLists.txt