From fe8afd50bfaf292f751b09a42ce9f9c94c651e44 Mon Sep 17 00:00:00 2001 From: Radkesvat <134321679+radkesvat@users.noreply.github.com> Date: Tue, 9 Jul 2024 14:00:13 +0000 Subject: [PATCH] fix warning --- ww/managers/alloc-engine/wof_allocator.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/ww/managers/alloc-engine/wof_allocator.c b/ww/managers/alloc-engine/wof_allocator.c index 10d26a85..0a2bee02 100644 --- a/ww/managers/alloc-engine/wof_allocator.c +++ b/ww/managers/alloc-engine/wof_allocator.c @@ -1,8 +1,7 @@ /* Wheel-of-Fortune Memory Allocator * Copyright 2013, Evan Huus */ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Woverflow" + #include #include @@ -46,9 +45,9 @@ typedef struct _wof_chunk_hdr_t { int prev; /* flags */ - int last:1; - int used:1; - int jumbo:1; + unsigned int last:1; + unsigned int used:1; + unsigned int jumbo:1; int len:29; } wof_chunk_hdr_t; @@ -906,4 +905,3 @@ wof_allocator_new(void) * vi: set shiftwidth=4 tabstop=8 expandtab: * :indentSize=4:tabSize=8:noTabs=true: */ -#pragma GCC diagnostic pop