diff options
author | Michael Brown <mcb30@ipxe.org> | 2012-03-07 00:33:19 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2012-03-07 00:35:58 +0000 |
commit | 8ad1e7ac128e0eb2f53943288e08ed23694ddfa9 (patch) | |
tree | 9094b89cc4ceeea08feac34b83c02306b08c6535 /src/tests/hmac_drbg_test.c | |
parent | 18ff2ad53e2e6fdaca071f0b5b02b8f9666024c1 (diff) | |
download | ipxe-8ad1e7ac128e0eb2f53943288e08ed23694ddfa9.tar.gz |
[test] Avoid using "static const" for test declarations
gcc will not warn about unused constant static variables. An unused
test declaration is almost certainly a bug, so ensure that warnings
are generated.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/tests/hmac_drbg_test.c')
-rw-r--r-- | src/tests/hmac_drbg_test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/hmac_drbg_test.c b/src/tests/hmac_drbg_test.c index 299d89498..d03efef03 100644 --- a/src/tests/hmac_drbg_test.c +++ b/src/tests/hmac_drbg_test.c @@ -87,7 +87,7 @@ struct hmac_drbg_test_instantiate { key, value ) \ static const uint8_t name ## _key [] = key; \ static const uint8_t name ## _value [] = value; \ - static const struct hmac_drbg_test_instantiate name = { \ + static struct hmac_drbg_test_instantiate name = { \ .hash = HMAC_DRBG_HASH ( hmac_drbg ), \ .out_len = HMAC_DRBG_OUTLEN_BYTES ( hmac_drbg ), \ .entropy = entropy_array, \ @@ -169,7 +169,7 @@ struct hmac_drbg_test_reseed { additional_array, key, value ) \ static const uint8_t name ## _key [] = key; \ static const uint8_t name ## _value [] = value; \ - static const struct hmac_drbg_test_reseed name = { \ + static struct hmac_drbg_test_reseed name = { \ .hash = HMAC_DRBG_HASH ( hmac_drbg ), \ .out_len = HMAC_DRBG_OUTLEN_BYTES ( hmac_drbg ), \ .entropy = entropy_array, \ @@ -240,7 +240,7 @@ struct hmac_drbg_test_generate { static const uint8_t name ## _key [] = key; \ static const uint8_t name ## _value [] = value; \ static const uint8_t name ## _data [] = data; \ - static const struct hmac_drbg_test_generate name = { \ + static struct hmac_drbg_test_generate name = { \ .hash = HMAC_DRBG_HASH ( hmac_drbg ), \ .out_len = HMAC_DRBG_OUTLEN_BYTES ( hmac_drbg ), \ .additional = additional_array, \ @@ -300,7 +300,7 @@ struct hmac_drbg_test_generate_fail { */ #define HMAC_DRBG_TEST_GENERATE_FAIL( name, hmac_drbg, \ additional_array, len ) \ - static const struct hmac_drbg_test_generate_fail name = { \ + static struct hmac_drbg_test_generate_fail name = { \ .hash = HMAC_DRBG_HASH ( hmac_drbg ), \ .additional = additional_array, \ .additional_len = sizeof ( additional_array ), \ |