Skip to content

Commit 12a3518

Browse files
committed
redirect stderr to /dev/null for clang-tidy
1 parent 67eb6b9 commit 12a3518

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/prorab.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,8 @@ ifneq ($(prorab_is_included),true)
259259
endif
260260

261261
# define predefined lint command for clang-tidy
262-
prorab_lint_cmd_clang_tidy = clang-tidy --quiet $$< -- $(this_cppflags) $$(if $$(patsubst %.c,,$$<),$(this_cxxflags),$(this_cflags))
262+
# NOTE: stderr is redirected to /dev/null because clang-tidy prints non-relevant warning messages to stderr which are to be ignored
263+
prorab_lint_cmd_clang_tidy = clang-tidy --quiet $$< -- $(this_cppflags) $$(if $$(patsubst %.c,,$$<),$(this_cxxflags),$(this_cflags)) 2>/dev/null
263264

264265
# set number of parallel jobs. In case number of jobs is given from the command line via '-j' or '--jobs' option
265266
# then this setting will be ignored by GNU make

0 commit comments

Comments
 (0)