[vlc-commits] [Git][videolan/vlc][master] contrib: silence cppcheck compiler errors

Rémi Denis-Courmont (@Courmisch) gitlab at videolan.org
Sun Sep 4 18:03:40 UTC 2022



Rémi Denis-Courmont pushed to branch master at VideoLAN / VLC


Commits:
400cbaa4 by Jacob Martin at 2022-09-04T17:18:40+00:00
contrib: silence cppcheck compiler errors

This fixes a misleading 'fatal error' message that appears when make
is invoked for contribs.

Since cppcheck only used stdout of $(CC) to begin with, suppressing
stderr in this manner should not change its overall behavior.

- - - - -


1 changed file:

- contrib/src/main.mak


Changes:

=====================================
contrib/src/main.mak
=====================================
@@ -157,7 +157,7 @@ ifneq ($(findstring clang, $(shell $(CC) --version 2>/dev/null)),)
 HAVE_CLANG := 1
 endif
 
-cppcheck = $(shell printf '$(2)' | $(CC) $(CFLAGS) -E -dM - | grep -E $(1))
+cppcheck = $(shell printf '$(2)' | $(CC) $(CFLAGS) -E -dM - 2>/dev/null | grep -E $(1))
 
 EXTRA_CFLAGS += -I$(PREFIX)/include
 CPPFLAGS := $(CPPFLAGS) $(EXTRA_CFLAGS)



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/400cbaa4aee3d9ea7e0fbd8177874d9b1aad165d

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/400cbaa4aee3d9ea7e0fbd8177874d9b1aad165d
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list