[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:
@@ -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, \
|
||||
|
||||
Reference in New Issue
Block a user