From 5c9a9c30f7ee70577f4517fde832bf9d718dc17a Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Thu, 11 Jan 2018 22:21:17 +0000 Subject: [PATCH] ci/build-check: add -Wno-error=deprecated-declarations For libdnf. Closes: #1114 Approved by: jlebon --- ci/build-check.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ci/build-check.sh b/ci/build-check.sh index cba52e20..8487b09a 100755 --- a/ci/build-check.sh +++ b/ci/build-check.sh @@ -19,7 +19,9 @@ if test -x /usr/bin/clang; then # error: argument unused during compilation: '-specs=/usr/lib/rpm/redhat/redhat-hardened -cc1' [-Werror,-Wunused-command-line-argument] # Except for macro-redefined: # /usr/include/python2.7/pyconfig-64.h:1199:9: error: '_POSIX_C_SOURCE' macro redefined - export CFLAGS="-Wall -Werror -Wno-error=macro-redefined -Wno-error=unused-command-line-argument ${CFLAGS:-}" + # Except for deprecated-declarations: libdnf python bindings uses deprecated + # functions + export CFLAGS="-Wall -Werror -Wno-error=deprecated-declarations -Wno-error=macro-redefined -Wno-error=unused-command-line-argument ${CFLAGS:-}" export CC=clang git clean -dfx && git submodule foreach git clean -dfx build