Skip to content

Commit 08bf1ec

Browse files
committed
Force gnu11 in tests
1 parent ec6b40e commit 08bf1ec

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ endif
130130
# Disable GCC 14 new warnings as errors because some tests contain them
131131
CFLAGS += -Wno-error=implicit-int -Wno-error=implicit-function-declaration -Wno-error=int-conversion -Wno-error=incompatible-pointer-types
132132

133+
# TODO: Force gnu11 because we're not ready for c23 yet
134+
CFLAGS += -std=gnu11
135+
133136
# sm: this will make gcc warnings into errors; it's almost never
134137
# what we want, but for a particular testcase (combine_copyptrs)
135138
# I need it to show the difference between something which works
@@ -176,7 +179,7 @@ SMALL1 := $(TESTDIR)/small1
176179

177180
test/% : $(SMALL1)/%.c
178181
cd $(SMALL1); $(CILLY) --nomerge --commPrintLn \
179-
$(CONLY) -std=gnu90 $(CFLAGS) $(ASMONLY)$*.s $*.c
182+
$(CONLY) $(CFLAGS) -std=gnu90 $(ASMONLY)$*.s $*.c
180183
echo SUCCESS
181184

182185
testobj/% : $(SMALL1)/%.c

0 commit comments

Comments
 (0)