summaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorRobert Fairley <rfairley@redhat.com>2019-06-19 16:04:39 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2019-06-21 13:17:10 +0000
commit35cce4972e24c99fd90c5be02e403c2d42825dd5 (patch)
treea48d94382e351ccf3d486ee497a5f502635968b5 /ci
parent46da9356a718db838e783bebf2383faf2ea2ec2a (diff)
downloadostree-35cce4972e24c99fd90c5be02e403c2d42825dd5.tar.gz
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
Diffstat (limited to 'ci')
-rwxr-xr-xci/build-check.sh3
1 files changed, 1 insertions, 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