Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
radkesvat committed Jul 9, 2024
1 parent b9b8d9f commit fe8afd5
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions ww/managers/alloc-engine/wof_allocator.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/* Wheel-of-Fortune Memory Allocator
* Copyright 2013, Evan Huus <[email protected]>
*/
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Woverflow"


#include <stdlib.h>
#include <string.h>
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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

0 comments on commit fe8afd5

Please sign in to comment.