Skip to content

Commit

Permalink
C89 compliance flags only used for test_compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
ccgargantua committed Mar 13, 2024
1 parent 8662b2c commit 3fb8644
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CFLAGS := -Werror -Wall -Wextra -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -g
CFLAGS = -Werror -Wall -Wextra
COMPLIANCE_FLAGS = -pedantic -std=c89 -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -g
EXAMPLES_C = $(wildcard code_examples/*.c)
EXAMPLES_OUT = $(patsubst code_examples/%.c,%,$(EXAMPLES_C))

Expand All @@ -7,7 +8,7 @@ tests:

compliance:
@echo "C89 compliance check..."
@$(CC) $(CFLAGS) -pedantic -std=c89 -o test_compliance test_compliance.c
@$(CC) $(CFLAGS) $(COMPLIANCE_FLAGS) -o test_compliance test_compliance.c
@rm -f test_compliance
@echo "C89 compliant."

Expand Down

0 comments on commit 3fb8644

Please sign in to comment.