Skip to content

Commit

Permalink
Fix warnings in public headers (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 authored May 15, 2023
1 parent 84b2148 commit 99ec79e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- 'main'

env:
BUILDER_VERSION: v0.9.40
BUILDER_VERSION: v0.9.43
BUILDER_SOURCE: releases
BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net
PACKAGE_NAME: aws-c-compression
Expand Down
7 changes: 7 additions & 0 deletions include/aws/compression/compression.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

#include <aws/common/common.h>

AWS_PUSH_SANE_WARNING_LEVEL

#define AWS_C_COMPRESSION_PACKAGE_ID 3

enum aws_compression_error {
Expand All @@ -18,6 +20,8 @@ enum aws_compression_error {
AWS_ERROR_END_COMPRESSION_RANGE = AWS_ERROR_ENUM_END_RANGE(AWS_C_COMPRESSION_PACKAGE_ID)
};

AWS_EXTERN_C_BEGIN

/**
* Initializes internal datastructures used by aws-c-compression.
* Must be called before using any functionality in aws-c-compression.
Expand All @@ -32,4 +36,7 @@ void aws_compression_library_init(struct aws_allocator *alloc);
AWS_COMPRESSION_API
void aws_compression_library_clean_up(void);

AWS_EXTERN_C_END
AWS_POP_SANE_WARNING_LEVEL

#endif /* AWS_COMPRESSION_COMPRESSION_H */
3 changes: 3 additions & 0 deletions include/aws/compression/huffman.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

#include <aws/common/byte_buf.h>

AWS_PUSH_SANE_WARNING_LEVEL

/**
* Represents an encoded code
*/
Expand Down Expand Up @@ -157,5 +159,6 @@ AWS_COMPRESSION_API
void aws_huffman_decoder_allow_growth(struct aws_huffman_decoder *decoder, bool allow_growth);

AWS_EXTERN_C_END
AWS_POP_SANE_WARNING_LEVEL

#endif /* AWS_COMPRESSION_HUFFMAN_H */

0 comments on commit 99ec79e

Please sign in to comment.