From dc5770a62f59cdd97fbecec4d5581fa4b3ff781a Mon Sep 17 00:00:00 2001 From: Andrzej Kurek Date: Mon, 12 Feb 2018 05:10:28 -0500 Subject: [PATCH] Remove unused variables from tests Fix clang build by removing unused variables and fixing comments --- include/mbedtls/ecp.h | 2 +- tests/suites/test_suite_pk.function | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/mbedtls/ecp.h b/include/mbedtls/ecp.h index c6e3edb25..6bcda1769 100644 --- a/include/mbedtls/ecp.h +++ b/include/mbedtls/ecp.h @@ -521,7 +521,7 @@ int mbedtls_ecp_tls_write_group( const mbedtls_ecp_group *grp, size_t *olen, * The output is the group's OID wrapped as ASN.1. * * \param grp ECP group used - * \param buf Buffer to write to + * \param p Buffer to write to * \param size Buffer size * \param olen Number of bytes written to \c buf * \return 0 on success diff --git a/tests/suites/test_suite_pk.function b/tests/suites/test_suite_pk.function index 1ad38eadd..25c46b217 100644 --- a/tests/suites/test_suite_pk.function +++ b/tests/suites/test_suite_pk.function @@ -173,7 +173,6 @@ exit: #define OPAQUE_MOCK_GOOD_SIGNATURE "good" static const unsigned char opaque_mock_hash[8] = "HASHhash"; static const unsigned char opaque_mock_reference_input[10] = "INPUTinput"; -static const unsigned char opaque_mock_input[10] = "INPUTinput"; static const unsigned char opaque_mock_reference_encrypted[12] = "C:JOQVUjoqvu"; static const unsigned char opaque_mock_reference_decrypted[12] = "P:HMOTShmots"; static char opaque_mock_fake_ctx = 'c';