From e3763457e5888453f984deafc25747733578d7c1 Mon Sep 17 00:00:00 2001 From: "me@ow.nekobit.net" Date: Tue, 26 Apr 2022 19:34:47 +0000 Subject: [PATCH] Fix compile bugs FossilOrigin-Name: c4705b366ed1b7e821a2292d407c7a700515324583ba043552f1af4d9970c82a --- Makefile | 2 +- src/json_helper.c | 1 + src/request.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 459f0f3..0779721 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ CC ?= cc -CFLAGS = -g -ansi -I ./include/ +CFLAGS = -g -ansi -Wall -Werror=implicit-function-declaration -I ./include/ SRC = $(wildcard src/*.c) OBJ = $(patsubst %.c,%.o,$(SRC)) TARGET = libmastodont.a # shared diff --git a/src/json_helper.c b/src/json_helper.c index e6d5572..ebfcaf2 100644 --- a/src/json_helper.c +++ b/src/json_helper.c @@ -13,6 +13,7 @@ * along with this program. If not, see . */ +#include #include int _mstdnt_json_init(cJSON** root, diff --git a/src/request.c b/src/request.c index c1d0fbf..6275f04 100644 --- a/src/request.c +++ b/src/request.c @@ -19,6 +19,7 @@ #include #include #include +#include #define CONV_SIZE 64