From f786c114683d575b455ba60c166f8c37bbb537d6 Mon Sep 17 00:00:00 2001 From: j4nk Date: Tue, 23 May 2023 12:18:52 -0400 Subject: [PATCH] Made compile warning disappear, may need to rework --- Makefile | 7 ++++--- main.c | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index befe55e..40cd20a 100644 --- a/Makefile +++ b/Makefile @@ -3,12 +3,13 @@ CLIB=-L/usr/local/lib -llua5.3 INC=-I/usr/local/include BIN=open_card_table DEBUG=-g +CFLAGS=-D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE open_card_table: main.o oct_networking.o oct_log.o - $(CC) -g $(INC) $(CLIB) -o $(BIN) $^ + $(CC) $(CFLAGS) $(INC) $(CLIB) -o $(BIN) $^ %.o: %.c - $(CC) -g $(INC) $(CLIB) -c -o $@ $< + $(CC) $(CFLAGS) $(INC) $(CLIB) -c -o $@ $< test: - $(CC) $(INC) $(CLIB) test.c -o test $(DEBUG) + $(CC) $(CFLAGS) $(INC) $(CLIB) test.c -o test $(DEBUG) diff --git a/main.c b/main.c index 572eb23..fc96ae8 100644 --- a/main.c +++ b/main.c @@ -9,6 +9,7 @@ #define TB_IMPL #include "termbox.h" + // Errors #define OCT_NO_LUA_FILE 1 #define OCT_LUA_FILE_NOT_FOUND 2