Skip to content

Commit 6ea3e06

Browse files
committed
dev: move all CFLAGS to config.mak
1 parent ceb6754 commit 6ea3e06

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ $(math.OBJS): src/common/mtest.h
115115
$(B)/api/main.exe: $(api.OBJS)
116116
api/main.OBJS:=$(api.OBJS)
117117
$(api.OBJS):$(B)/common/options.h
118-
$(api.OBJS):CFLAGS+=-Wno-unused -D_XOPEN_SOURCE=700
119118

120119
all run: $(B)/REPORT
121120
grep FAIL $< || echo PASS

config.mak.def

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ SKIP_FP_EXCEPT_TEST:=0
55

66
# Build and link flags
77
CFLAGS += -DSKIP_FP_EXCEPT_TEST=$(SKIP_FP_EXCEPT_TEST)
8-
CFLAGS += -pipe -std=c99 -D_POSIX_C_SOURCE=200809L -Wall -Wno-unused-function -Wno-missing-braces -Wno-unused -Wno-overflow
8+
CFLAGS += -pipe -std=c99 -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700
9+
CFLAGS += -Wall -pedantic -Wno-unused-function -Wno-missing-braces -Wno-unused -Wno-overflow
910
CFLAGS += -Wno-unknown-pragmas -fno-builtin -frounding-math
1011
CFLAGS += -Werror=implicit-function-declaration -Werror=implicit-int -Werror=pointer-sign -Werror=pointer-arith
1112
CFLAGS += -g

0 commit comments

Comments
 (0)