Skip to content

[redis-plus-plus] Disable werror by default to avoid GCC-16 error - #30897

Open
uilianries wants to merge 1 commit into
conan-io:masterfrom
uilianries:redis-plus-plus/werror
Open

[redis-plus-plus] Disable werror by default to avoid GCC-16 error#30897
uilianries wants to merge 1 commit into
conan-io:masterfrom
uilianries:redis-plus-plus/werror

Conversation

@uilianries

@uilianries uilianries commented Sep 2, 2026

Copy link
Copy Markdown
Member

Summary

Changes to recipe: redis-plus-plus/1.3.15

Motivation

close #30798

Details

I can reproduce the reported scenario: When building redis-plus-plus/1.3.15 with GCC 16, I have the following error:

/home/conan/.conan2/p/b/redis6c5fffd311a1b/b/src/src/sw/redis++/reply.h: In constructor ‘sw::redis::ParseError::ParseError(const std::string&, const redisReply&)’:
/home/conan/.conan2/p/b/redis6c5fffd311a1b/b/src/src/sw/redis++/reply.h:54:60: error: ‘<unknown>’ may be used uninitialized [-Werror=maybe-uninitialized]
   54 |             const redisReply &reply) : ProtoError(_err_info(expect_type, reply)) {}

redis-plus-plus-1.3.15-linux-amd64-gcc16-release-static.log

After applying this patch, by removing multiple declarations of Werror from CMakeLists, I can build without errors:

redis-plus-plus-1.3.15-linux-amd64-gcc16-release-static-patched.log


  • Read the contributing guidelines
  • Checked that this PR is not a duplicate: list of PRs by recipe
  • If this is a bug fix, please link related issue or provide bug details
  • Tested locally with at least one configuration using a recent version of Conan

Add a 👍 reaction to pull requests you find important to help the team prioritize, thanks!

Signed-off-by: Uilian Ries <uilianr@jfrog.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant