Skip to content

Commit d510ca4

Browse files
committed
Honor default C compiler
Suppress compilation warnings that occur when characters with values > 127 are assigned to char variables on x86 platforms. Since x86(-64) treats char as signed by default and there is no 'unsigned' support at the moment, these assignments trigger signedness warnings. This commit adds a compiler option to suppress these warnings.
1 parent 8160475 commit d510ca4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
CC ?= gcc
21
CFLAGS := -O -g \
32
-std=c99 -pedantic
43

@@ -14,7 +13,8 @@ CFLAGS_TO_CHECK := \
1413
-Wno-strict-prototypes \
1514
-Wno-declaration-after-statement \
1615
-Wno-format \
17-
-Wno-format-pedantic
16+
-Wno-format-pedantic \
17+
-Wno-overflow
1818

1919
SUPPORTED_CFLAGS :=
2020
# Check if a specific compiler flag is supported, attempting a dummy compilation

0 commit comments

Comments
 (0)