]> git.ipfire.org Git - thirdparty/curl.git/commit
build: always revert `#pragma GCC diagnostic` after use
authorViktor Szakats <commit@vsz.me>
Fri, 17 Nov 2023 19:13:13 +0000 (19:13 +0000)
committerViktor Szakats <commit@vsz.me>
Sat, 18 Nov 2023 11:16:32 +0000 (11:16 +0000)
commita9fd0d0083a534ef1efa82e7546846776cbd7373
treea982b999e17fc68447ef9a10b3c1e819ca291541
parentab50027ddf9358b03608c41eff7ba1a667399718
build: always revert `#pragma GCC diagnostic` after use

Before this patch some source files were overriding gcc warning options,
but without restoring them at the end of the file. In CMake UNITY builds
these options spilled over to the remainder of the source code,
effecitvely disabling them for a larger portion of the codebase than
intended.

`#pragma clang diagnostic` didn't have such issue in the codebase.

Reviewed-by: Marcel Raad
Closes #12352
lib/vssh/libssh.c
lib/vtls/sectransp.c
src/tool_main.c
tests/unit/unit3200.c