Gert Doering has submitted this change. ( https://gerrit.openvpn.net/c/openvpn/+/2070?usp=email )
Change subject: test_provider: Fix compiler warning with clang 23 ...................................................................... test_provider: Fix compiler warning with clang 23 With --disable-management it complains "variable 'mgmt_callback_called' set but not used [-Werror,-Wunused-but-set-global]". Change-Id: If33596abef4e97aa9b58f12cd866a5cded17fd4f Signed-off-by: Frank Lichtenheld <[email protected]> Acked-by: Razvan Cojocaru <[email protected]> Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2070 Message-Id: <[email protected]> URL: https://www.mail-archive.com/[email protected]/msg40307.html Signed-off-by: Gert Doering <[email protected]> --- M tests/unit_tests/openvpn/test_provider.c 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/unit_tests/openvpn/test_provider.c b/tests/unit_tests/openvpn/test_provider.c index e5562ee..5d31da3 100644 --- a/tests/unit_tests/openvpn/test_provider.c +++ b/tests/unit_tests/openvpn/test_provider.c @@ -42,7 +42,9 @@ #include "test_common.h" struct management *management; /* global */ +#ifdef ENABLE_MANAGEMENT static int mgmt_callback_called; +#endif #ifndef _countof #define _countof(x) sizeof((x)) / sizeof(*(x)) @@ -156,8 +158,9 @@ char *out = NULL; /* indicate entry to the callback */ +#ifdef ENABLE_MANAGEMENT mgmt_callback_called = 1; - +#endif const char *expected_tbs = test_digest_b64; if (strstr(algorithm, "data=message")) { -- To view, visit https://gerrit.openvpn.net/c/openvpn/+/2070?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.openvpn.net/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: If33596abef4e97aa9b58f12cd866a5cded17fd4f Gerrit-Change-Number: 2070 Gerrit-PatchSet: 2 Gerrit-Owner: Frank Lichtenheld <[email protected]> Gerrit-Reviewer: Arne Schwabe <[email protected]> Gerrit-Reviewer: Răzvan Cojocaru <[email protected]> Gerrit-CC: openvpn-devel <[email protected]>
_______________________________________________ Openvpn-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openvpn-devel
