curl/.github/workflows
Viktor Szakats 413a0fedd0
autotools: stop setting -std=gnu89 with --enable-warnings
Do not alter the C standard when building with `--enable-warnings` when
building with gcc.

On one hand this alters warning results compared to a default build.
On the other, it may produce different binaries, which is unexpected.

Also fix new warnings that appeared after removing `-std=gnu89`:

- include: fix public curl headers to use the correct printf mask for
  `CURL_FORMAT_CURL_OFF_T` and `CURL_FORMAT_CURL_OFF_TU` with mingw-w64
  and Visual Studio 2013 and newer. This fixes the printf mask warnings
  in examples and tests. E.g. [1]

- conncache: fix printf format string [2].

- http2: fix potential null pointer dereference [3].
  (seen on Slackware with gcc 11.)

- libssh: fix printf format string in SFTP code [4].
  Also make MSVC builds compatible with old CRT versions.

- libssh2: fix printf format string in SFTP code for MSVC.
  Applying the same fix as for libssh above.

- unit1395: fix `argument is null` and related issues [5]:
  - stop calling `strcmp()` with NULL to avoid undefined behaviour.
  - fix checking results if some of them were NULL.
  - do not pass NULL to printf `%s`.

- ci: keep a build job with `-std=gnu89` to continue testing for
  C89-compliance. We can apply this to other gcc jobs as needed.
  Ref: b23ce2cee7 (2022-09-23) #9542

[1] https://dev.azure.com/daniel0244/curl/_build/results?buildId=18581&view=logs&jobId=ccf9cc6d-2ef1-5cf2-2c09-30f0c14f923b
[2] https://github.com/curl/curl/actions/runs/6896854263/job/18763831142?pr=12346#step:6:67
[3] https://github.com/curl/curl/actions/runs/6896854253/job/18763839238?pr=12346#step:30:214
[4] https://github.com/curl/curl/actions/runs/6896854253/job/18763838007?pr=12346#step:29:895
[5] https://github.com/curl/curl/actions/runs/6896854253/job/18763836775?pr=12346#step:33:1689

Closes #12346
2023-11-20 22:28:17 +00:00
..
appveyor-status.yml tidy-up: mostly whitespace nits 2023-08-31 23:02:10 +00:00
awslc.yml gha: bump actions to latest versions 2023-10-01 12:16:23 +00:00
codeql-analysis.yml gha: bump actions to latest versions 2023-10-01 12:16:23 +00:00
configure-vs-cmake.yml GHA: bump actions/checkout 2023-10-04 09:11:46 +00:00
distcheck.yml CI: add autotools, out-of-tree, debug build to distro check job 2023-10-12 23:29:39 +00:00
fuzz.yml CI: don't run CI jobs if only another CI was changed 2023-04-24 20:46:09 -07:00
hacktoberfest-accepted.yml gha: bump actions to latest versions 2023-10-01 12:16:23 +00:00
label.yml github/labeler: remove workaround for labeler 2023-09-29 08:58:52 -07:00
linkcheck.yml gha: bump actions to latest versions 2023-10-01 12:16:23 +00:00
linux32.yml gha: bump actions to latest versions 2023-10-01 12:16:23 +00:00
linux.yml autotools: stop setting -std=gnu89 with --enable-warnings 2023-11-20 22:28:17 +00:00
macos.yml cmake: fix HAVE_LDAP_SSL, HAVE_LDAP_URL_PARSE on non-Windows 2023-10-02 22:19:47 +00:00
ngtcp2-linux.yml GHA: bump ngtcp2, nghttp3, nghttp2 and quictls versions 2023-10-29 17:39:23 +01:00
proselint.yml gha: bump actions to latest versions 2023-10-01 12:16:23 +00:00
quiche-linux.yml ci: test with latest quiche release (0.19.0) 2023-11-11 23:44:54 +01:00
reuse.yml gha: bump actions to latest versions 2023-10-01 12:16:23 +00:00
spellcheck.yml gha: bump actions to latest versions 2023-10-01 12:16:23 +00:00
torture.yml gha: bump actions to latest versions 2023-10-01 12:16:23 +00:00
wolfssl.yml gha: bump actions to latest versions 2023-10-01 12:16:23 +00:00