Skip to content

Commit

Permalink
Build tests with flags -Wall -Werror -Wextra
Browse files Browse the repository at this point in the history
  • Loading branch information
babelouest committed Mar 1, 2024
1 parent 3608bec commit dfc5e9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dfc5e9c

Please # to comment.