From dfc5e9cdc149925e43c3734db6057d41ab44482f Mon Sep 17 00:00:00 2001 From: Nicolas Mora Date: Fri, 1 Mar 2024 13:31:41 -0500 Subject: [PATCH] Build tests with flags -Wall -Werror -Wextra --- test/Makefile | 2 +- test/core.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Makefile b/test/Makefile index 2ca5768..95b38fd 100644 --- a/test/Makefile +++ b/test/Makefile @@ -10,7 +10,7 @@ HOEL_INCLUDE=../include HOEL_LOCATION=../src HOEL_LIBRARY=$(HOEL_LOCATION)/libhoel.so CC=gcc -CFLAGS=-Wall -I$(HOEL_INCLUDE) -D_REENTRANT -DDEBUG -g -O0 +CFLAGS=-Wall -Werror -Wextra -I$(HOEL_INCLUDE) -D_REENTRANT -DDEBUG -g -O0 HOEL_DB_TEST=/tmp/test.db LDFLAGS=-lc $(shell pkg-config --libs liborcania) $(shell pkg-config --libs libyder) $(shell pkg-config --libs libhoel) $(shell pkg-config --libs jansson) -L$(HOEL_LIBRARY) $(shell pkg-config --libs check) VALGRIND_COMMAND=valgrind --tool=memcheck --leak-check=full --show-leak-kinds=all diff --git a/test/core.c b/test/core.c index 786ff97..861dd55 100644 --- a/test/core.c +++ b/test/core.c @@ -1107,7 +1107,7 @@ static Suite *hoel_suite(void) return s; } -int main(int argc, char *argv[]) +int main(void) { int number_failed; Suite *s;