From a1b70b3ea866a3d5e2764f0311f2ea52473a4af4 Mon Sep 17 00:00:00 2001 From: arighi Date: Thu, 17 Feb 2011 14:59:35 +0000 Subject: [PATCH] sec: fix type qualifier ambiguity Fix the following build warning: bertos/sec/cipher/aes_f32.h:443: warning: type qualifiers ignored on function return type git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4714 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/sec/cipher/aes_f32.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bertos/sec/cipher/aes_f32.h b/bertos/sec/cipher/aes_f32.h index d172388d..4fa64a0f 100644 --- a/bertos/sec/cipher/aes_f32.h +++ b/bertos/sec/cipher/aes_f32.h @@ -440,7 +440,9 @@ static void lazy_expandKeyEnc256(uint32_t *k) } } -static const void (*lazy_expandKeyEnc[3])(uint32_t *k) = +typedef void (*lazy_expand_handler)(uint32_t *); + +static const lazy_expand_handler lazy_expandKeyEnc[3] = { lazy_expandKeyEnc128, lazy_expandKeyEnc192, lazy_expandKeyEnc256, }; -- 2.25.1