Skip to content

Commit

Permalink
switch from c11 to c17 standard
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed Jan 12, 2022
1 parent efd71e7 commit 17891d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 17891d7

Please sign in to comment.