From 35cce4972e24c99fd90c5be02e403c2d42825dd5 Mon Sep 17 00:00:00 2001 From: Robert Fairley Date: Wed, 19 Jun 2019 16:04:39 -0400 Subject: [PATCH] ci/build-check: Remove unused-command-line-argument diagnostic Since `clang-4.0` is no longer being used, it should be safe to remove use of this diagnostic for clang. This enables using `gcc` as a workaround for `g-ir-scanner`, as `unused-command-line-argument` is not recognized by `gcc`. See: https://github.com/ostreedev/ostree/pull/1871#issuecomment-503765624 Closes: #1871 Approved by: jlebon --- ci/build-check.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ci/build-check.sh b/ci/build-check.sh index ed129c74..bd0686bd 100755 --- a/ci/build-check.sh +++ b/ci/build-check.sh @@ -25,8 +25,7 @@ if test -x /usr/bin/clang; then if grep -q -e 'static inline.*_GLIB_AUTOPTR_LIST_FUNC_NAME' /usr/include/glib-2.0/glib/gmacros.h; then echo 'Skipping clang check, see https://bugzilla.gnome.org/show_bug.cgi?id=796346' else - # Except for clang-4.0: error: argument unused during compilation: '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' [-Werror,-Wunused-command-line-argument] - export CFLAGS="-Wall -Werror -Wno-error=unused-command-line-argument ${CFLAGS:-}" + export CFLAGS="-Wall -Werror ${CFLAGS:-}" git clean -dfx && git submodule foreach git clean -dfx export CC=clang build