Repository navigation
Conversation
Bring `cmake/PickyWarning.cmake` closer to curl's. - cmake: replace `unset(VAR)` with `set(VAR "")` for init - cmake: add support to build ossfuzz Enable with `-DBUILD_OSSFUZZ=ON`. Also supports `-DLIB_FUZZING_ENGINE=` like autotools does. - cmake: prefer dash-style MSVC options - cmake: simplify MATCHES expression - cmake: formatting/whitespace
vszakats
added a commit
that referenced
this pull request
Feb 2, 2025
- `set(VAR "${VAR}<value>")` ->
`string(APPEND VAR "<value>")`
Available since CMake 3.4:
https://cmake.org/cmake/help/latest/command/string.html#append
- `set(VAR "${VAR2}-or-<value>;${VAR}")` ->
`set(VAR "${VAR2}-or-<value>" ${VAR})`
- prefer dash-style MSVC option.
Follow-up to 854cfa8 #1524
Closes #1533
vszakats
added a commit
to vszakats/libssh2
that referenced
this pull request
Apr 26, 2025
vszakats
added a commit
to vszakats/libssh2
that referenced
this pull request
Apr 26, 2025
vszakats
added a commit
to vszakats/libssh2
that referenced
this pull request
Apr 27, 2025
vszakats
added a commit
to vszakats/libssh2
that referenced
this pull request
Apr 28, 2025
vszakats
added a commit
to vszakats/libssh2
that referenced
this pull request
May 6, 2025
vszakats
added a commit
that referenced
this pull request
May 7, 2025
- cmake: sync `-ftree-vrp` behavior with autotools. - build: enable `-Wjump-misses-init` for GCC 4.5+. Credits-to: Marcel Raad - packet: fix `-Wjump-misses-init` warnings. ``` src/packet.c: In function ‘_libssh2_packet_add’: src/packet.c:671:9: error: jump skips variable initialization [-Werror=jump-misses-init] src/packet.c:920:31: note: ‘want_reply’ declared here src/packet.c:671:9: error: jump skips variable initialization [-Werror=jump-misses-init] src/packet.c:919:26: note: ‘len’ declared here src/packet.c:669:9: error: jump skips variable initialization [-Werror=jump-misses-init] src/packet.c:1121:31: note: ‘want_reply’ declared here src/packet.c:669:9: error: jump skips variable initialization [-Werror=jump-misses-init] src/packet.c:1120:26: note: ‘len’ declared here src/packet.c:669:9: error: jump skips variable initialization [-Werror=jump-misses-init] src/packet.c:1119:26: note: ‘channel’ declared here ``` - build: enable gcc-12/13+, clang-10+ picky warnings - acinclude.m4: sync formatting/comments with curl. - autotools: fix `-Wtrampolines` picky warning for gcc 4.x versions. Follow-up to 854cfa8 #1524 - cmake: enable `-Wall` for MSVC when `PICKY_COMPILER=ON`. - MSVC: fix `-Wall` warnings. Seen on VS2015. Not seen on VS2022. Unknown for other versions. ``` tests\test_simple.c(60): warning C4777: 'fprintf' : format string '%d' requires an argument of type 'int', but variadic argument 1 has type 'std::size_t' tests\test_simple.c(60): warning C4777: 'fprintf' : format string '%.*s' requires an argument of type 'int', but variadic argument 2 has type 'std::size_t' ``` - mbedtls: stop silencing warnings in 3rd-party header. Follow-up to a3aa6b4 #1525 - cmake: stop deleting `-W<n>` from `CMAKE_C_FLAGS` (MSVC) 1. `CMAKE_C_FLAGS` may apply to other projects, and deleting/altering it may be unexpected. 2. We pass `-W4`/`-Wall` internally now, which do override custom `-W<n>` options as tested with VS2008 and newer VS generators. Closes #1588
1 task
vszakats
added a commit
to vszakats/libssh2
that referenced
this pull request
Sep 28, 2025
Follow-up to 854cfa8 libssh2#1524
vszakats
added a commit
that referenced
this pull request
Sep 29, 2025
- prefer `set_property()` over `target_compile_options()`, to use the modern style. Follow-up to 8017592 #939 - prefer to append to compiler/linker options in examples/tests. To prevent accidentally overriding a previously set option. Follow-up to 14a709a #1686 Follow-up to 854cfa8 #1524 - replace `LINK_FLAGS` with `LINK_OPTIONS` that superceded it, for CMake 3.13+. Follow-up to 854cfa8 #1524 https://cmake.org/cmake/help/v4.1/prop_tgt/LINK_OPTIONS.html Closes #1690
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enable with
-DBUILD_OSSFUZZ=ON.Also supports
-DLIB_FUZZING_ENGINE=like autotools does.__clang__when suppressing warnings in source. Necessaryfor clang-cl, which set
__clang__, but doesn't set__GNU__.-pedantic-error,-Walluse closer to curl's.-Wno-language-extension-tokenfor clang-cl.-Woptions for clang-cl.unset(VAR)withset(VAR "")for init.MATCHESexpression.actions/upload-artifactto v4Cherry-picked from #1484