Skip to content

Commit

Permalink
remove compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jgthomas committed Oct 29, 2019
1 parent 60b7646 commit ba2c519
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ vpath %.c $(SOURCE)

# COMPILER - with flags and libraries to link
CC = gcc
CFLAGS = -g -Wall -Wextra $(foreach dir, $(INCLUDES), -I$(dir))
CFLAGS = -g -Wall -Wextra -Werror $(foreach dir, $(INCLUDES), -I$(dir))
LDLIBS = -lcmocka -lm

# EXECUTABLE - the final binary file
Expand Down
4 changes: 4 additions & 0 deletions tests/emulator_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

void test_answer_three(void **state)
{
(void) state; /* unused */

char *tests[] = {"03 03 03 00",
"04 04 04 07 00",
"03 03 03 03 03 03 05 05 05 00",
Expand All @@ -38,6 +40,8 @@ void test_answer_three(void **state)

void test_many_different_instructions(void **state)
{
(void) state; /* unused */

char *tests[] = {"03 04 01 05 06 07 08 0b 09 0c 0d 09 0a 07 00",
"0d 08 09 08 0f 0a 01 00 0e 02 0a 06 0d 06 00"};

Expand Down

0 comments on commit ba2c519

Please sign in to comment.