[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:35:58 +00:00
parent 18ff2ad53e
commit 8ad1e7ac12
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ struct aes_cbc_test {
static const uint8_t name ## _iv [] = iv_array; \
static const uint8_t name ## _plaintext [] = plaintext_array; \
static const uint8_t name ## _ciphertext [] = ciphertext_array; \
static const struct aes_cbc_test name = { \
static struct aes_cbc_test name = { \
.key = name ## _key, \
.key_len = sizeof ( name ## _key ), \
.iv = name ## _iv, \