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 #60

Merged
merged 4 commits into from
May 15, 2023
Merged

Fix warnings in public headers #60

merged 4 commits into from
May 15, 2023

Conversation

waahm7
Copy link
Contributor

@waahm7 waahm7 commented May 9, 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.

@waahm7 waahm7 changed the title WIP | Fix warnings in public headers Fix warnings in public headers May 10, 2023
@waahm7 waahm7 marked this pull request as ready for review May 10, 2023 16:06
Copy link
Contributor

@graebm graebm left a comment

Choose a reason for hiding this comment

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

fix & ship

@@ -32,4 +34,6 @@ void aws_compression_library_init(struct aws_allocator *alloc);
AWS_COMPRESSION_API
void aws_compression_library_clean_up(void);

AWS_POP_SANE_WARNING_LEVEL
Copy link
Contributor

Choose a reason for hiding this comment

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

this file's lacking AWS_EXTERN_C_BEGIN/END

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, fixed.

@waahm7 waahm7 merged commit 99ec79e into main May 15, 2023
@waahm7 waahm7 deleted the header-warnings branch May 15, 2023 20:33
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