From 35a6403604e52e18d6b00e66b671702b946b2ebb Mon Sep 17 00:00:00 2001 From: Aleksa Sarai Date: Wed, 12 Apr 2017 07:24:03 +1000 Subject: [PATCH] *: build with C99 It's 2017, let's not stick with C89 (also for some reason the Travis environment has a different -std= default value than my local machine). Signed-off-by: Aleksa Sarai --- conmon/Makefile | 2 +- pause/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conmon/Makefile b/conmon/Makefile index c8c7c4a9..b028c558 100644 --- a/conmon/Makefile +++ b/conmon/Makefile @@ -2,7 +2,7 @@ src = $(wildcard *.c) obj = $(src:.c=.o) override LIBS += $(shell pkg-config --libs glib-2.0) -override CFLAGS += -Wall -Wextra $(shell pkg-config --cflags glib-2.0) +override CFLAGS += -std=c99 -Wall -Wextra $(shell pkg-config --cflags glib-2.0) conmon: $(obj) $(CC) -o $@ $^ $(CFLAGS) $(LIBS) diff --git a/pause/Makefile b/pause/Makefile index a6f886a6..da24f7fe 100644 --- a/pause/Makefile +++ b/pause/Makefile @@ -2,7 +2,7 @@ src = $(wildcard *.c) obj = $(src:.c=.o) override LIBS += -override CFLAGS += -Os -Wall -Wextra -static +override CFLAGS += -std=c99 -Os -Wall -Wextra -static pause: $(obj) $(CC) -o $@ $^ $(CFLAGS) $(LIBS)