Skip to content

Commit

Permalink
Merge pull request #1260 from lairworks/updateShowWarnings
Browse files Browse the repository at this point in the history
Update `make show-warnings`
  • Loading branch information
DanRStevens authored Mar 4, 2025
2 parents fb1f006 + b5bb18f commit 4cdebd7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,13 @@ $(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 > /dev/null
$(MAKE) --output-sync all CXX=clang++ CXXFLAGS_WARN=-Weverything 2>&1 >/dev/null | grep -o "\[-W.*\]" | sort | uniq
@$(MAKE) clean > /dev/null
@$(MAKE) clean-all > /dev/null
$(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
lint: cppcheck cppclean
Expand Down

0 comments on commit 4cdebd7

Please sign in to comment.