Fix warnings.

This commit is contained in:
Jief L 2020-04-24 18:15:05 +03:00
parent 0dca81990b
commit fc0b83c34b
3 changed files with 3 additions and 3 deletions

2
rEFIt_UEFI/Platform/Posix/abort.cpp Normal file → Executable file
View File

@ -53,7 +53,7 @@ void panic(const char* format, ...)
VA_LIST va;
VA_START(va, format);
panic_(format, va); // panic doesn't return
//VA_END(va);
VA_END(va);
}else{
i_have_panicked = true;
}

View File

@ -101,7 +101,7 @@ static int compare_s1_with_variable_sizes(const char* s1, int code)
{
size_t count = (size_t)(rndf()*sizeof(s2)-1);
if ( count >= sizeof(s2) ) {
printf("compare_s1_with_variable_sizes, BUG : sizeof=%lu, count=%zu\n", sizeof(s2), count);
printf("compare_s1_with_variable_sizes, BUG : sizeof=%zu, count=%zu\n", sizeof(s2), count);
continue;
}
fillRandom(s2, count);

View File

@ -141,7 +141,7 @@ static int compare_s1_with_variable_sizes(const char* s1, size_t s1count, int co
{
size_t s2count = (size_t)(rndf()*sizeof(s2)-1);
if ( s2count >= sizeof(s2) ) {
printf("compare_s1_with_variable_sizes, BUG : sizeof=%lu, count=%zu\n", sizeof(s2), s2count);
printf("compare_s1_with_variable_sizes, BUG : sizeof=%zu, count=%zu\n", sizeof(s2), s2count);
continue;
}
fillRandom(s2, s2count);