curl/.github/workflows
Viktor Szakats 0fd794df35
cmake: fix -Wredundant-decls in unity/mingw-w64/gcc/curldebug/DLL builds
It affected cmake-unity shared-curltool curldebug mingw-w64 gcc builds
when building the `testdeps` target.

Apply the solution already used in `lib/base64.c` and `lib/dynbuf.c`
to fix it.

Also update an existing GHA CI job to test the issue fixed.

```
In file included from curl/lib/version_win32.c:35,
                 from curl/_bld/src/CMakeFiles/curl.dir/Unity/unity_0_c.c:145:
curl/lib/memdebug.h:52:14: error: redundant redeclaration of 'curl_dbg_logfile' [-Werror=redundant-decls]
   52 | extern FILE *curl_dbg_logfile;
      |              ^~~~~~~~~~~~~~~~
In file included from curl/src/slist_wc.c:32,
                 from curl/_bld/src/CMakeFiles/curl.dir/Unity/unity_0_c.c:4:
curl/lib/memdebug.h:52:14: note: previous declaration of 'curl_dbg_logfile' with type 'FILE *' {aka 'struct _iobuf *'}
   52 | extern FILE *curl_dbg_logfile;
      |              ^~~~~~~~~~~~~~~~
curl/lib/memdebug.h:55:44: error: redundant redeclaration of 'curl_dbg_malloc' [-Werror=redundant-decls]
   55 | CURL_EXTERN ALLOC_FUNC ALLOC_SIZE(1) void *curl_dbg_malloc(size_t size,
      |                                            ^~~~~~~~~~~~~~~
curl/lib/memdebug.h:55:44: note: previous declaration of 'curl_dbg_malloc' with type 'void *(size_t,  int,  const char *)' {aka 'void *(long long unsigned int,  int,  const char *)'}
   55 | CURL_EXTERN ALLOC_FUNC ALLOC_SIZE(1) void *curl_dbg_malloc(size_t size,
      |                                            ^~~~~~~~~~~~~~~
[...]
curl/lib/memdebug.h:110:17: error: redundant redeclaration of 'curl_dbg_fclose' [-Werror=redundant-decls]
  110 | CURL_EXTERN int curl_dbg_fclose(FILE *file, int line, const char *source);
      |                 ^~~~~~~~~~~~~~~
curl/lib/memdebug.h:110:17: note: previous declaration of 'curl_dbg_fclose' with type 'int(FILE *, int,  const char *)' {aka 'int(struct _iobuf *, int,  const char *)'}
  110 | CURL_EXTERN int curl_dbg_fclose(FILE *file, int line, const char *source);
      |                 ^~~~~~~~~~~~~~~
```
Ref: https://ci.appveyor.com/project/curlorg/curl/builds/49840554/job/a4aoet17e9qnqx1a#L362

After: https://ci.appveyor.com/project/curlorg/curl/builds/49843735/job/hbo2uah2vj0ns523

Ref: #13689 (CI testing this PR with `DEBUGBUILD`/`CURLDEBUG`/shared-static combinations)
Depends-on: #13694
Depends-on: #13800
Closes #13705
2024-05-27 22:56:13 +02:00
..
appveyor-status.yml tidy-up: mostly whitespace nits 2023-08-31 23:02:10 +00:00
awslc.yml CI: disable dependency tracking in most autotools builds 2024-05-27 22:25:14 +02:00
badwords.yml GHA: bump actions/checkout from 4.1.4 to 4.1.6 2024-05-22 09:14:10 +02:00
codeql-analysis.yml ci: update github/codeql-action digest to 9fdb3e4 2024-05-24 00:02:03 +02:00
codespell.yml GHA: bump actions/checkout from 4.1.4 to 4.1.6 2024-05-22 09:14:10 +02:00
configure-vs-cmake.yml GHA: bump actions/checkout from 4.1.4 to 4.1.6 2024-05-22 09:14:10 +02:00
curl-for-win.yml GHA: bump actions/checkout from 4.1.4 to 4.1.6 2024-05-22 09:14:10 +02:00
distcheck.yml GHA: bump actions/checkout from 4.1.4 to 4.1.6 2024-05-22 09:14:10 +02:00
fuzz.yml appveyor: replace PowerShell with bash + parallel autotools 2023-12-21 22:54:07 +00:00
hacktoberfest-accepted.yml GHA: bump actions/checkout from 4.1.4 to 4.1.6 2024-05-22 09:14:10 +02:00
label.yml GHA: pin dependencies 2024-05-15 13:35:45 +02:00
linkcheck.yml GHA: bump actions/checkout from 4.1.4 to 4.1.6 2024-05-22 09:14:10 +02:00
linux32.yml CI: disable dependency tracking in most autotools builds 2024-05-27 22:25:14 +02:00
linux-old.yml GHA: bump actions/checkout from 4.1.4 to 4.1.6 2024-05-22 09:14:10 +02:00
linux.yml CI: disable dependency tracking in most autotools builds 2024-05-27 22:25:14 +02:00
macos.yml CI: disable dependency tracking in most autotools builds 2024-05-27 22:25:14 +02:00
man-examples.yml GHA: bump actions/checkout from 4.1.4 to 4.1.6 2024-05-22 09:14:10 +02:00
ngtcp2-linux.yml CI: disable dependency tracking in most autotools builds 2024-05-27 22:25:14 +02:00
non-native.yml GHA: ignore flaky MQTT and FTP test results [ci skip] 2024-05-27 19:56:45 +02:00
osslq-linux.yml CI: disable dependency tracking in most autotools builds 2024-05-27 22:25:14 +02:00
proselint.yml GHA: bump actions/checkout from 4.1.4 to 4.1.6 2024-05-22 09:14:10 +02:00
quiche-linux.yml CI: disable dependency tracking in most autotools builds 2024-05-27 22:25:14 +02:00
reuse.yml GHA: bump actions/checkout from 4.1.4 to 4.1.6 2024-05-22 09:14:10 +02:00
shellcheck.yml GHA: bump actions/checkout from 4.1.4 to 4.1.6 2024-05-22 09:14:10 +02:00
spellcheck.yml GHA: bump actions/checkout from 4.1.4 to 4.1.6 2024-05-22 09:14:10 +02:00
synopsis.yml GHA: bump actions/checkout from 4.1.4 to 4.1.6 2024-05-22 09:14:10 +02:00
torture.yml CI: disable dependency tracking in most autotools builds 2024-05-27 22:25:14 +02:00
windows.yml cmake: fix -Wredundant-decls in unity/mingw-w64/gcc/curldebug/DLL builds 2024-05-27 22:56:13 +02:00
wolfssl.yml CI: disable dependency tracking in most autotools builds 2024-05-27 22:25:14 +02:00