Skip to content

Commit

Permalink
Make warning reports verbose
Browse files Browse the repository at this point in the history
TODO: Try `-Werror` and `-pedantic-errors` after  chores are done.
  • Loading branch information
61315 committed Feb 7, 2022
1 parent b6552b2 commit 52d554f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ OBJS := $(SRCS:%=$(BUILD_DIR)/%.o)
INC_DIRS := $(shell find $(SRC_DIRS) -type d)
INC_FLAGS := $(addprefix -I,$(INC_DIRS))

CFLAGS := $(INC_FLAGS) -MMD -MP -DSYNTH_LIB_ALONE
CFLAGS := $(INC_FLAGS) -MMD -MP -DSYNTH_LIB_ALONE -g2 -Wall -Wextra -std=c99 -pedantic

# -g -Wall -Wextra -Werror -std=c99 -pedantic-errors
# TODO: Try both -Werror and -pedantic-errors after all the chores are done.

$(BUILD_DIR)/$(TARGET_LIB): $(OBJS)
ar rvs $@ $^
Expand Down

0 comments on commit 52d554f

Please sign in to comment.