[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>
This commit is contained in:
Michael Brown
2012-03-07 00:33:19 +00:00
parent 18ff2ad53e
commit 8ad1e7ac12
3 changed files with 6 additions and 6 deletions

View File

@@ -71,7 +71,7 @@ struct hash_df_test {
#define HASH_DF_TEST( name, hash_algorithm, input_array, expected_array ) \
static const uint8_t name ## _input [] = input_array; \
static const uint8_t name ## _expected [] = expected_array; \
static const struct hash_df_test name = { \
static struct hash_df_test name = { \
.hash = &(hash_algorithm), \
.input = name ## _input, \
.input_len = sizeof ( name ## _input ), \