fix warning of unused pageSizeV for windows builds
This commit is contained in:
parent
26c12e6724
commit
7b7c31e8b9
4
src/vm.c
4
src/vm.c
@ -1128,7 +1128,10 @@ void md2Bl_print(FILE* f, B x) { fprintf(f,"{2-modifier block}"); }
|
|||||||
|
|
||||||
B block_decompose(B x) { return m_hVec2(m_i32(1), x); }
|
B block_decompose(B x) { return m_hVec2(m_i32(1), x); }
|
||||||
|
|
||||||
|
#if !defined(_WIN32) && !defined(_WIN64)
|
||||||
static usz pageSizeV;
|
static usz pageSizeV;
|
||||||
|
#endif
|
||||||
|
|
||||||
usz getPageSize() {
|
usz getPageSize() {
|
||||||
#if defined(_WIN32) || defined(_WIN64)
|
#if defined(_WIN32) || defined(_WIN64)
|
||||||
#if !NO_MMAP
|
#if !NO_MMAP
|
||||||
@ -1140,6 +1143,7 @@ usz getPageSize() {
|
|||||||
return pageSizeV;
|
return pageSizeV;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void allocStack(void** curr, void** start, void** end, i32 elSize, i32 count) {
|
static void allocStack(void** curr, void** start, void** end, i32 elSize, i32 count) {
|
||||||
usz ps = getPageSize();
|
usz ps = getPageSize();
|
||||||
u64 sz = (elSize*count + ps-1)/ps * ps;
|
u64 sz = (elSize*count + ps-1)/ps * ps;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user