mirror of
https://github.com/curl/curl.git
synced 2026-07-26 00:47:20 +03:00
GHA/linux: enable clang-tidy for docs/examples
Also: - imap-append: silence false positive (seen on Linux only). Follow-up tob1f853a384#20731 Follow-up to725c5609ae#20723 Closes #20743
This commit is contained in:
parent
9871f46069
commit
ad72af4743
2 changed files with 2 additions and 2 deletions
2
.github/workflows/linux.yml
vendored
2
.github/workflows/linux.yml
vendored
|
|
@ -934,7 +934,7 @@ jobs:
|
|||
../.github/scripts/randcurl.pl 60 ../bld/src/curl
|
||||
|
||||
- name: 'build examples'
|
||||
if: ${{ !contains(matrix.build.install_packages, 'valgrind') && matrix.build.make-custom-target != 'tidy' && !contains(matrix.build.name, '!examples') }}
|
||||
if: ${{ !contains(matrix.build.install_packages, 'valgrind') && !contains(matrix.build.name, '!examples') }}
|
||||
run: |
|
||||
if [ "${MATRIX_BUILD}" = 'cmake' ]; then
|
||||
${MATRIX_MAKE_PREFIX} cmake --build bld --verbose --target curl-examples-build
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ static size_t read_cb(char *ptr, size_t size, size_t nmemb, void *userp)
|
|||
size_t len = strlen(data);
|
||||
if(room < len)
|
||||
len = room;
|
||||
memcpy(ptr, data, len);
|
||||
memcpy(ptr, data, len); /* NOLINT(bugprone-not-null-terminated-result) */
|
||||
upload_ctx->bytes_read += len;
|
||||
|
||||
return len;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue