Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save WarrenTheRabbit/4f97a40c7fc058dddedf4d5218b8c823 to your computer and use it in GitHub Desktop.
Save WarrenTheRabbit/4f97a40c7fc058dddedf4d5218b8c823 to your computer and use it in GitHub Desktop.
Diff of the Last Commit
diff --git a/Makefile b/Makefile
index 832848d..f9292c9 100644
--- a/Makefile
+++ b/Makefile
@@ -5,13 +5,14 @@ PATH_UNITY = $(PATH_PROJECT)/Unity/src
TEST_RUNNER = $(PATH_TESTS)/test_runner_template.c
TEST_RUNNER_OUT = $(PATH_TESTS)/unity_test_runner.out
+CC_FLAGS = -Wall -Wextra -Werror -pedantic
.PHONY: clean run
all: build run
build: $(TEST_RUNNER)
- gcc -I$(PATH_UNITY) $(PATH_UNITY)/unity.c $(TEST_RUNNER) -o $(TEST_RUNNER_OUT)
+ gcc $(CC_FLAGS) -I$(PATH_UNITY) $(PATH_UNITY)/unity.c $(TEST_RUNNER) -o $(TEST_RUNNER_OUT)
run:
echo -n "$(notdir $(TEST_RUNNER)) tests:"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment