Skip to content

Commit 472684d

Browse files
committed
some fixes
Signed-off-by: Slice <[email protected]>
1 parent 45059d4 commit 472684d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

BaseTools/Conf/tools_def.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2746,7 +2746,7 @@ RELEASEMACOS_XCODE8_X64_DLINK_FLAGS = -arch x86_64 -nostdlib -Wl,-u,_$(IMAG
27462746
# -Wno-varargs
27472747
# -Wno-unused-const-variable
27482748

2749-
DEFINE XCODE8_COMMON_FLAGS = -c -Wall -Wextra -include AutoGen.h -fno-ms-extensions -fno-stack-protector -fno-builtin -fshort-wchar -mms-bitfields -DSTRING_ARRAY_NAME=$(BASE_NAME)Strings -mno-red-zone -fno-common -fdata-sections -ffreestanding -ffunction-sections -fno-asynchronous-unwind-tables -m64 -mcmodel=small -DNO_MSABI_VA_FUNCS -fno-strict-aliasing -Wno-unused-parameter
2749+
DEFINE XCODE8_COMMON_FLAGS = -c -Wall -Wextra -include AutoGen.h -fno-ms-extensions -fno-stack-protector -fno-builtin -fshort-wchar -mms-bitfields -DSTRING_ARRAY_NAME=$(BASE_NAME)Strings -mno-red-zone -fno-common -fdata-sections -ffreestanding -ffunction-sections -fno-asynchronous-unwind-tables -m64 -mcmodel=small -DNO_MSABI_VA_FUNCS -fno-strict-aliasing -Wno-cast-function-type-mismatch -Wno-missing-field-initializers -Wno-unused-parameter
27502750

27512751

27522752

FileSystems/GrubFS/grub/grub-core/lib/libgcrypt/cipher/rijndael.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ do_setkey (RIJNDAEL_context *ctx, const byte *key, const unsigned keylen)
353353
else
354354
{
355355
#define W (ctx->keyschenc)
356-
for (i = 0; i < keylen; i++)
356+
for (i = 0; i < (int)keylen; i++)
357357
{
358358
k[i >> 2][i & 3] = key[i];
359359
}
@@ -1857,7 +1857,7 @@ selftest_fips_128_38a (int requested_mode)
18571857
gcry_assert (sizeof tv[0].data[0].input == sizeof scratch);
18581858
gcry_assert (sizeof tv[0].data[0].output == sizeof scratch);
18591859

1860-
for (tvi=0; tvi < DIM (tv); tvi++)
1860+
for (tvi=0; tvi < (int)(DIM (tv)); tvi++)
18611861
if (tv[tvi].mode == requested_mode)
18621862
break;
18631863
if (tvi == DIM (tv))
@@ -1879,7 +1879,7 @@ selftest_fips_128_38a (int requested_mode)
18791879
err = _gcry_cipher_setiv (hddec, tv[tvi].iv, sizeof tv[tvi].iv);
18801880
if (err)
18811881
Fail ("set IV");
1882-
for (idx=0; idx < DIM (tv[tvi].data); idx++)
1882+
for (idx=0; idx < (int)(DIM (tv[tvi].data)); idx++)
18831883
{
18841884
err = _gcry_cipher_encrypt (hdenc, scratch, sizeof scratch,
18851885
tv[tvi].data[idx].input,
@@ -2027,17 +2027,17 @@ static gcry_cipher_oid_spec_t rijndael_oids[] =
20272027
{ "2.16.840.1.101.3.4.1.2", GCRY_CIPHER_MODE_CBC },
20282028
{ "2.16.840.1.101.3.4.1.3", GCRY_CIPHER_MODE_OFB },
20292029
{ "2.16.840.1.101.3.4.1.4", GCRY_CIPHER_MODE_CFB },
2030-
{ NULL }
2030+
{ NULL, 0 }
20312031
};
20322032

20332033
gcry_cipher_spec_t _gcry_cipher_spec_aes =
20342034
{
20352035
"AES", rijndael_names, rijndael_oids, 16, 128, sizeof (RIJNDAEL_context),
2036-
rijndael_setkey, rijndael_encrypt, rijndael_decrypt
2036+
rijndael_setkey, rijndael_encrypt, rijndael_decrypt, 0, 0, NULL, NULL
20372037
};
20382038
cipher_extra_spec_t _gcry_cipher_extraspec_aes =
20392039
{
2040-
run_selftests
2040+
run_selftests, NULL
20412041
};
20422042

20432043
static const char *rijndael192_names[] =

0 commit comments

Comments
 (0)