diff options
author | Colin Walters <walters@verbum.org> | 2023-04-26 09:37:22 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2023-04-26 09:37:22 -0400 |
commit | 3391d8f3f0579e9686c43325dd8c8509a4844ac9 (patch) | |
tree | c641dbad26a3ca0e48718dc4fef0a1f7bc54f1e6 | |
parent | 90f7c7bd9f98ebcdff81e0363a4d0117b876d5c3 (diff) | |
download | ostree-3391d8f3f0579e9686c43325dd8c8509a4844ac9.tar.gz |
ci: Turn off errors for deprecated-declarations
Having `-Werror` on in CI only by default has generally worked OK,
but I don't think it's worth trying to immediately scramble to port
when they deprecate APIs.
Motivated in this case by
```
src/libostree/ostree-fetcher-curl.c: In function 'initiate_next_curl_request':
src/libostree/ostree-fetcher-curl.c:876:3: error: 'CURLOPT_PROTOCOLS' is deprecated: since 7.85.0. Use CURLOPT_PROTOCOLS_STR [-Werror=deprecated-declarations]
876 | rc = curl_easy_setopt (req->easy, CURLOPT_PROTOCOLS, (long)(CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_FILE));
| ^~
```
-rwxr-xr-x | ci/build-check.sh | 2 | ||||
-rwxr-xr-x | ci/build.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ci/build-check.sh b/ci/build-check.sh index aed8ba7e..716052c1 100755 --- a/ci/build-check.sh +++ b/ci/build-check.sh @@ -25,7 +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 - export CFLAGS="-Wall -Werror ${CFLAGS:-}" + export CFLAGS="-Wall -Werror -Wno-error=deprecated-declarations ${CFLAGS:-}" git clean -dfx && git submodule foreach git clean -dfx export CC=clang build diff --git a/ci/build.sh b/ci/build.sh index 2afcd018..48605658 100755 --- a/ci/build.sh +++ b/ci/build.sh @@ -30,6 +30,6 @@ esac # always fail on warnings; https://github.com/ostreedev/ostree/pull/971 # NB: this disables the default set of flags from configure.ac -export CFLAGS="-Wall -Werror ${CFLAGS:-}" +export CFLAGS="-Wall -Werror -Wno-error=deprecated-declarations ${CFLAGS:-}" build --enable-gtk-doc ${CONFIGOPTS:-} |