Skip to content

Commit 17891d7

Browse files
committed
switch from c11 to c17 standard
1 parent efd71e7 commit 17891d7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ ifeq ($(CONFIG_NATIVE),true)
3030
SHARED_FLAGS += -march=native
3131
endif
3232

33-
CFLAGS := $(CFLAGS) -std=c11 $(SHARED_FLAGS) -Wmissing-prototypes
33+
CFLAGS := $(CFLAGS) -std=c17 $(SHARED_FLAGS) -Wmissing-prototypes
3434
CXXFLAGS := $(CXXFLAGS) -std=c++17 $(SHARED_FLAGS)
3535
LDFLAGS := $(LDFLAGS) -Wl,--as-needed,-z,defs,-z,relro,-z,now,-z,nodlopen,-z,text
3636

@@ -129,7 +129,7 @@ $(OUT)/util.o: util.c util.h $(CONFIG_FILE) | $(OUT)
129129
check: tidy
130130

131131
tidy:
132-
clang-tidy --extra-arg=-std=c11 $(filter %.c,$(SOURCES)) -- $(CPPFLAGS)
132+
clang-tidy --extra-arg=-std=c17 $(filter %.c,$(SOURCES)) -- $(CPPFLAGS)
133133
clang-tidy --extra-arg=-std=c++17 $(filter %.cc,$(SOURCES)) -- $(CPPFLAGS)
134134

135135
clean:

0 commit comments

Comments
 (0)