summaryrefslogtreecommitdiffstats
path: root/src/tests/hash_df_test.c
diff options
context:
space:
mode:
authorMichael Brown2012-03-07 01:33:19 +0100
committerMichael Brown2012-03-07 01:35:58 +0100
commit8ad1e7ac128e0eb2f53943288e08ed23694ddfa9 (patch)
tree9094b89cc4ceeea08feac34b83c02306b08c6535 /src/tests/hash_df_test.c
parent[debug] Ensure debug address and colourisation fields are fully initialised (diff)
downloadipxe-8ad1e7ac128e0eb2f53943288e08ed23694ddfa9.tar.gz
ipxe-8ad1e7ac128e0eb2f53943288e08ed23694ddfa9.tar.xz
ipxe-8ad1e7ac128e0eb2f53943288e08ed23694ddfa9.zip
[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/hash_df_test.c')
-rw-r--r--src/tests/hash_df_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/hash_df_test.c b/src/tests/hash_df_test.c
index 0fb28492..ccbc86ea 100644
--- a/src/tests/hash_df_test.c
+++ b/src/tests/hash_df_test.c
@@ -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 ), \