Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comprehensive option to disable -Werror or respect CXXFLAGS #2555

Closed
ihnorton opened this issue Jun 27, 2023 · 3 comments
Closed

Comprehensive option to disable -Werror or respect CXXFLAGS #2555

ihnorton opened this issue Jun 27, 2023 · 3 comments
Assignees
Labels
feature-request A feature should be added or improved. p2 This is a standard priority issue

Comments

@ihnorton
Copy link

ihnorton commented Jun 27, 2023

Describe the bug

As far as I can tell, aws-sdk-cpp does not currently provide a way to disable setting -Werror, although some dependencies do (https://github.com/awslabs/aws-c-common/blob/1778c799be82fde844a02e27d59c5a30a1489e90/cmake/AwsCFlags.cmake#L12).

Please introduce a similar option to either disable -Werror, or to force cmake to respect CXXFLAGS and CFLAGS by not post-pending -Werror.

Expected Behavior

Don't set -Werror unconditionally.

Current Behavior

Builds fail when new compiler versions are released with different safety checks. There are many examples in the issue tracker. It takes time to get these fixed and released across all downstream packages, so an escape-hatch is necessary.

Reproduction Steps

n/a please see many prior issues in this repo

Possible Solution

No response

Additional Information/Context

No response

AWS CPP SDK version used

n/a

Compiler and Version used

gcc 12, but happens with other compilers

Operating System and version

Debian 12

@ihnorton ihnorton added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jun 27, 2023
@yasminetalby yasminetalby self-assigned this Jun 28, 2023
@yasminetalby
Copy link
Contributor

Hello @ihnorton ,

Thank you very much for your submission and feedback.
I see the previous issue submission related to this. I will bring this up for discussion with the team and update you on this issue.

Thank you again for your time and collaboration.

Sincerely,

Yasmine

@yasminetalby yasminetalby added needs-review This issue or pull request needs review from a core team member. and removed needs-triage This issue or PR still needs to be triaged. labels Jun 28, 2023
@jmklix jmklix added feature-request A feature should be added or improved. p2 This is a standard priority issue and removed bug This issue is a bug. needs-review This issue or pull request needs review from a core team member. labels Jun 30, 2023
@sbiscigl
Copy link
Contributor

Added AWS_SDK_WARNINGS_ARE_ERRORS as a cmake arg that defaults to on that you can escape hatch out of it if desired. give a shout if you have any questions or suggestions, thanks for the feedback!

@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved. p2 This is a standard priority issue
Projects
None yet
Development

No branches or pull requests

4 participants