Skip to content

Commit 92c5082

Browse files
karel-msjaeckel
authored andcommitted
Merge pull request #375 from libtom/pr/fix-unused-const-variable
Fix -Wunused-const-variable in aes_tab.c (cherry picked from commit 5c31c3d)
1 parent 719d297 commit 92c5082

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/ciphers/aes/aes_tab.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ static const ulong32 TE0[256] = {
9494
0x7bb0b0cbUL, 0xa85454fcUL, 0x6dbbbbd6UL, 0x2c16163aUL,
9595
};
9696

97-
#ifndef PELI_TAB
97+
#if !defined(PELI_TAB) && defined(LTC_SMALL_CODE)
9898
static const ulong32 Te4[256] = {
9999
0x63636363UL, 0x7c7c7c7cUL, 0x77777777UL, 0x7b7b7b7bUL,
100100
0xf2f2f2f2UL, 0x6b6b6b6bUL, 0x6f6f6f6fUL, 0xc5c5c5c5UL,
@@ -1017,11 +1017,13 @@ static const ulong32 Tks3[] = {
10171017

10181018
#endif /* SMALL CODE */
10191019

1020+
#ifndef PELI_TAB
10201021
static const ulong32 rcon[] = {
10211022
0x01000000UL, 0x02000000UL, 0x04000000UL, 0x08000000UL,
10221023
0x10000000UL, 0x20000000UL, 0x40000000UL, 0x80000000UL,
10231024
0x1B000000UL, 0x36000000UL, /* for 128-bit blocks, Rijndael never uses more than 10 rcon values */
10241025
};
1026+
#endif
10251027

10261028
#endif /* __LTC_AES_TAB_C__ */
10271029

0 commit comments

Comments
 (0)