More warning and compile fixes.
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
* Copyright 2023 gloriouscow.
|
||||
* Copyright 2023 Miran Grca.
|
||||
*/
|
||||
#include <inttypes.h>
|
||||
#include <math.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdint.h>
|
||||
@@ -76,7 +77,11 @@ void
|
||||
queue_set_size(size_t size)
|
||||
{
|
||||
if (size > QUEUE_MAX)
|
||||
#if (defined __amd64__ || defined _M_X64 || defined __aarch64__ || defined _M_ARM64)
|
||||
fatal("Requested prefetch queue of %" PRIi64 " bytes is too big\n", size);
|
||||
#else
|
||||
fatal("Requested prefetch queue of %i bytes is too big\n", size);
|
||||
#endif
|
||||
|
||||
queue.size = size;
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
* Copyright 2016-2020 Miran Grca.
|
||||
* Copyright 2018-2021 Fred N. van Kempen.
|
||||
*/
|
||||
#include <inttypes.h>
|
||||
#include <math.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
@@ -1609,7 +1610,7 @@ cpu_set(void)
|
||||
break;
|
||||
|
||||
default:
|
||||
fatal("cpu_set : unknown CPU type %llu\n", cpu_s->cpu_type);
|
||||
fatal("cpu_set : unknown CPU type %" PRIu64 "\n", cpu_s->cpu_type);
|
||||
}
|
||||
|
||||
switch (fpu_type) {
|
||||
|
||||
Reference in New Issue
Block a user