Skip to content

Commit ebb20d5

Browse files
committed
fix signedness of N_ARENA
Fixes CFLAGS=-Wformat-signedness make CC=gcc CONFIG_STATS=true build failure
1 parent cd2315c commit ebb20d5

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Android.bp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ common_cflags = [
2525
"-DREGION_QUARANTINE_SKIP_THRESHOLD=33554432", // 32MiB
2626
"-DFREE_SLABS_QUARANTINE_RANDOM_LENGTH=32",
2727
"-DCONFIG_CLASS_REGION_SIZE=34359738368", // 32GiB
28-
"-DN_ARENA=1",
28+
"-DN_ARENA=1U",
2929
"-DCONFIG_STATS=true",
3030
"-DCONFIG_SELF_INIT=false",
3131
]

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ CPPFLAGS += \
112112
-DREGION_QUARANTINE_SKIP_THRESHOLD=$(CONFIG_REGION_QUARANTINE_SKIP_THRESHOLD) \
113113
-DFREE_SLABS_QUARANTINE_RANDOM_LENGTH=$(CONFIG_FREE_SLABS_QUARANTINE_RANDOM_LENGTH) \
114114
-DCONFIG_CLASS_REGION_SIZE=$(CONFIG_CLASS_REGION_SIZE) \
115-
-DN_ARENA=$(CONFIG_N_ARENA) \
115+
-DN_ARENA=$(CONFIG_N_ARENA)U \
116116
-DCONFIG_STATS=$(CONFIG_STATS) \
117117
-DCONFIG_SELF_INIT=$(CONFIG_SELF_INIT) \
118118
-DCONFIG_LABEL_MEMORY=$(CONFIG_LABEL_MEMORY)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ the size of the empty slab caches and quarantines, saving a lot of memory,
228228
since those are currently based on the size of the largest size class):
229229

230230
make \
231-
N_ARENA=1 \
231+
N_ARENA=1U \
232232
CONFIG_EXTENDED_SIZE_CLASSES=false
233233

234234
The following boolean configuration options are available:

0 commit comments

Comments
 (0)