Skip to content

Commit

Permalink
Add ability to suppress uninteresting warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
DanRStevens committed Mar 4, 2025
1 parent 47c89b3 commit b5bb18f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,12 @@ $(PACKAGE_NAME): $(OUTPUT) $(shell find $(SRCDIR) -name '*.h')

## Linting ##

WarnNoUninteresting := -Wno-c++98-compat-pedantic -Wno-pre-c++17-compat

.PHONY: show-warnings
show-warnings:
@$(MAKE) clean-all > /dev/null
$(MAKE) --output-sync all CXX=clang++ CXXFLAGS_WARN=-Weverything 2>&1 >/dev/null | grep -o "\[-W.*\]" | sort | uniq
$(MAKE) --output-sync all CXX=clang++ CXXFLAGS_WARN="-Weverything $(WarnNoUninteresting)" 2>&1 >/dev/null | grep -o "\[-W.*\]" | sort | uniq
@$(MAKE) clean-all > /dev/null

.PHONY: lint
Expand Down

0 comments on commit b5bb18f

Please sign in to comment.