From eaf4e069890c1e55a89a211222614a2d885d135b Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Thu, 14 Apr 2022 10:13:05 +0200 Subject: [PATCH] Enable `-std=gnu17` --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2748dc7..63323fe 100644 --- a/Makefile +++ b/Makefile @@ -44,13 +44,13 @@ clean: rm -f .depend $(OBJS) $(OBJS:.o=.d) $(HTML_SRC) $(TARGET) headers: - find -name '*.h' | xargs -n1 $(CCACHE) $(CC) $(CFLAGS) -Wno-error -c -o /dev/null + find -name '*.h' | xargs -n1 $(CCACHE) $(CC) $(CFLAGS) -std=gnu17 -Wno-error -c -o /dev/null find -name '*.hh' | xargs -n1 $(CCACHE) $(CXX) $(CFLAGS) -std=c++17 -Wno-error -c -o /dev/null -include $(OBJS:.o=.d) %.o: %.c - $(CCACHE) $(CC) -MMD $(CFLAGS) -c -o $@ $< + $(CCACHE) $(CC) -std=gnu17 -MMD $(CFLAGS) -c -o $@ $< %.o: %.cc $(CCACHE) $(CXX) -std=c++17 -MMD $(CFLAGS) -c -o $@ $<