]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
.gitlab-ci.yml: reduce expected scan-build errors
authorOto Šťáva <oto.stava@nic.cz>
Thu, 6 Oct 2022 07:37:42 +0000 (09:37 +0200)
committerOto Šťáva <oto.stava@nic.cz>
Thu, 26 Jan 2023 11:56:08 +0000 (12:56 +0100)
The following line is no longer in `daemon/worker.c`, as it has been
replaced by a different mechanism in session2:

    uv_handle_t *ioreq = malloc(is_stream ? sizeof(uv_write_t) : sizeof(uv_udp_send_t));

It was originally causing the following error, which is now fixed:

    warning: Cast a region whose size is not a multiple of the destination type size

.gitlab-ci.yml

index 34493376660c37dbd0d2cfaf299706be891777a7..b6c0c115f7da7226e7aff40160d81f2950c808dc 100644 (file)
@@ -253,7 +253,7 @@ lint:scan-build:
   script:
     - export SCANBUILD="$(realpath ./scripts/run-scanbuild-with-args.sh)"
     - ninja -C build_ci* scan-build || true
-    - test "$(ls build_ci*/meson-logs/scanbuild/*/report-*.html | wc -l)" = 22 # we have this many errors ATM :-)
+    - test "$(ls build_ci*/meson-logs/scanbuild/*/report-*.html | wc -l)" = 21 # we have this many errors ATM :-)
 
 lint:tidy:
   <<: *after_build