mirror of
https://github.com/ipxe/ipxe
synced 2025-12-29 19:38:37 +03:00
[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:
@@ -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 ), \
|
||||
|
||||
Reference in New Issue
Block a user