From 17891d743e2ae7f5c8daf92328da74cfaf40ebca Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Wed, 12 Jan 2022 10:20:47 -0500 Subject: [PATCH] switch from c11 to c17 standard --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 87964c0..29e6fe6 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,7 @@ ifeq ($(CONFIG_NATIVE),true) SHARED_FLAGS += -march=native endif -CFLAGS := $(CFLAGS) -std=c11 $(SHARED_FLAGS) -Wmissing-prototypes +CFLAGS := $(CFLAGS) -std=c17 $(SHARED_FLAGS) -Wmissing-prototypes CXXFLAGS := $(CXXFLAGS) -std=c++17 $(SHARED_FLAGS) LDFLAGS := $(LDFLAGS) -Wl,--as-needed,-z,defs,-z,relro,-z,now,-z,nodlopen,-z,text @@ -129,7 +129,7 @@ $(OUT)/util.o: util.c util.h $(CONFIG_FILE) | $(OUT) check: tidy tidy: - clang-tidy --extra-arg=-std=c11 $(filter %.c,$(SOURCES)) -- $(CPPFLAGS) + clang-tidy --extra-arg=-std=c17 $(filter %.c,$(SOURCES)) -- $(CPPFLAGS) clang-tidy --extra-arg=-std=c++17 $(filter %.cc,$(SOURCES)) -- $(CPPFLAGS) clean: