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

Fix warnings in public headers #569

Merged
merged 9 commits into from
May 15, 2023
Merged

Fix warnings in public headers #569

merged 9 commits into from
May 15, 2023

Conversation

waahm7
Copy link
Contributor

@waahm7 waahm7 commented May 8, 2023

Description of changes:

  • Adds AWS_PUSH_SANE_WARNING_LEVEL and AWS_POP_SANE_WARNING_LEVEL to the public headers. The public header should contain at least one include; otherwise, we will receive a "macro not found" error. Therefore, I decided to skip adding these macros if there are no includes.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@@ -254,8 +258,6 @@ struct aws_tls_negotiated_protocol_message {
struct aws_byte_buf protocol;
};

static const int AWS_TLS_NEGOTIATED_PROTOCOL_MESSAGE = 0x01;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I understand, a static const int will always trigger a warning (C5264) in our header checker, indicating that it is unused. This is because it is only used in the .c files.

@waahm7 waahm7 changed the title WIP | Fix warnings in public headers Fix warnings in public headers May 9, 2023
@waahm7 waahm7 marked this pull request as ready for review May 9, 2023 19:37
@waahm7 waahm7 merged commit 118a57e into main May 15, 2023
@waahm7 waahm7 deleted the header-warnings branch May 15, 2023 20:31
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.

2 participants