From 2287c67c54a67709487f331dc2b65f8689ce8fd5 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Tue, 16 Feb 2021 23:32:59 +0100 Subject: [PATCH] Use -std=c11 --- arduino/Makefile | 2 +- client/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arduino/Makefile b/arduino/Makefile index 61e6d11..5921ff6 100644 --- a/arduino/Makefile +++ b/arduino/Makefile @@ -13,7 +13,7 @@ OBJDUMP := avr-objdump AVRDUDE := avrdude OPTIM := -Os -g -fdata-sections -ffunction-sections -flto -fuse-linker-plugin -fipa-pta #-fgraphite-identity -floop-nest-optimize -CFLAGS := $(OPTIM) -Wall -Wextra -std=c17 -DF_CPU=16000000L +CFLAGS := $(OPTIM) -Wall -Wextra -std=c11 -DF_CPU=16000000L LDFLAGS := $(OPTIM) -Wl,--gc-sections -Wl,--print-gc-sections rwildcard = $(foreach d, $(wildcard $1*), $(filter $(subst *, %, $2), $d) $(call rwildcard, $d/, $2)) diff --git a/client/Makefile b/client/Makefile index 51b7b66..d30c193 100644 --- a/client/Makefile +++ b/client/Makefile @@ -3,7 +3,7 @@ name := GBCartRead dir_source := source dir_build := build -CFLAGS := -O0 -g -Wall -Wextra -std=gnu17 $(CFLAGS) +CFLAGS := -O0 -g -Wall -Wextra -std=gnu11 $(CFLAGS) CFLAGS += $(shell pkg-config --cflags libserialport) LDLIBS += $(shell pkg-config --libs libserialport)