Skip to content

Make warnings-as-errors configurable and fix pedantic semicolon warning#1308

Open
Akshayembate wants to merge 1 commit into
libcpr:masterfrom
Akshayembate:improve-warning-handling
Open

Make warnings-as-errors configurable and fix pedantic semicolon warning#1308
Akshayembate wants to merge 1 commit into
libcpr:masterfrom
Akshayembate:improve-warning-handling

Conversation

@Akshayembate
Copy link
Copy Markdown

Summary

This PR makes -Werror configurable through a new CMake option:

CPR_WARNINGS_AS_ERRORS

Default behavior remains unchanged (ON).

Motivation

Some downstream projects and newer compiler versions may emit pedantic warnings that should not always fail the build. This change allows users to disable -Werror while still keeping warning flags enabled.

Changes

  • Added CPR_WARNINGS_AS_ERRORS option
  • Separated warning flags from -Werror
  • Preserved existing default behavior
  • Fixed pedantic semicolon warning in async.cpp

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