Skip to content

Commit ac18abb

Browse files
authored
Fix warnings in public headers (#440)
1 parent 3d72f46 commit ac18abb

11 files changed

+31
-2
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- 'main'
77

88
env:
9-
BUILDER_VERSION: v0.9.40
9+
BUILDER_VERSION: v0.9.43
1010
BUILDER_SOURCE: releases
1111
BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net
1212
PACKAGE_NAME: aws-c-http

codebuild/linux-integration-tests.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ phases:
1010
pre_build:
1111
commands:
1212
- export CC=gcc-7
13-
- export BUILDER_VERSION=v0.9.29
13+
- export BUILDER_VERSION=$(cat .github/workflows/ci.yml | grep 'BUILDER_VERSION:' | sed 's/\s*BUILDER_VERSION:\s*\(.*\)/\1/')
14+
- echo "Using builder version ${BUILDER_VERSION}"
1415
- export BUILDER_SOURCE=releases
1516
- export BUILDER_HOST=https://d19elf31gohf1l.cloudfront.net
1617
build:

include/aws/http/connection.h

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
#include <aws/http/http.h>
1010

11+
AWS_PUSH_SANE_WARNING_LEVEL
12+
1113
struct aws_client_bootstrap;
1214
struct aws_socket_options;
1315
struct aws_socket_endpoint;
@@ -688,5 +690,6 @@ AWS_HTTP_API
688690
void aws_http2_connection_update_window(struct aws_http_connection *http2_connection, uint32_t increment_size);
689691

690692
AWS_EXTERN_C_END
693+
AWS_POP_SANE_WARNING_LEVEL
691694

692695
#endif /* AWS_HTTP_CONNECTION_H */

include/aws/http/connection_manager.h

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
#include <aws/common/byte_buf.h>
1212

13+
AWS_PUSH_SANE_WARNING_LEVEL
14+
1315
struct aws_client_bootstrap;
1416
struct aws_http_connection;
1517
struct aws_http_connection_manager;
@@ -190,5 +192,6 @@ void aws_http_connection_manager_fetch_metrics(
190192
struct aws_http_manager_metrics *out_metrics);
191193

192194
AWS_EXTERN_C_END
195+
AWS_POP_SANE_WARNING_LEVEL
193196

194197
#endif /* AWS_HTTP_CONNECTION_MANAGER_H */

include/aws/http/http.h

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
#include <aws/http/exports.h>
1111
#include <aws/io/io.h>
1212

13+
AWS_PUSH_SANE_WARNING_LEVEL
14+
1315
#define AWS_C_HTTP_PACKAGE_ID 2
1416

1517
enum aws_http_errors {
@@ -154,5 +156,6 @@ AWS_HTTP_API extern const struct aws_byte_cursor aws_http_scheme_http;
154156
AWS_HTTP_API extern const struct aws_byte_cursor aws_http_scheme_https;
155157

156158
AWS_EXTERN_C_END
159+
AWS_POP_SANE_WARNING_LEVEL
157160

158161
#endif /* AWS_HTTP_H */

include/aws/http/http2_stream_manager.h

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
#include <aws/http/http.h>
1010

11+
AWS_PUSH_SANE_WARNING_LEVEL
12+
1113
struct aws_http2_stream_manager;
1214
struct aws_client_bootstrap;
1315
struct aws_http_connection;
@@ -212,4 +214,6 @@ void aws_http2_stream_manager_fetch_metrics(
212214
struct aws_http_manager_metrics *out_metrics);
213215

214216
AWS_EXTERN_C_END
217+
AWS_POP_SANE_WARNING_LEVEL
218+
215219
#endif /* AWS_HTTP2_STREAM_MANAGER_H */

include/aws/http/proxy.h

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
#include <aws/http/request_response.h>
1212
#include <aws/http/status_code.h>
1313

14+
AWS_PUSH_SANE_WARNING_LEVEL
15+
1416
struct aws_http_client_connection_options;
1517
struct aws_http_connection_manager_options;
1618

@@ -566,5 +568,6 @@ AWS_HTTP_API int aws_http_proxy_new_socket_channel(
566568
const struct aws_http_proxy_options *proxy_options);
567569

568570
AWS_EXTERN_C_END
571+
AWS_POP_SANE_WARNING_LEVEL
569572

570573
#endif /* AWS_PROXY_STRATEGY_H */

include/aws/http/request_response.h

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
#include <aws/http/http.h>
1010

11+
AWS_PUSH_SANE_WARNING_LEVEL
12+
1113
struct aws_http_connection;
1214
struct aws_input_stream;
1315

@@ -1121,5 +1123,6 @@ AWS_HTTP_API
11211123
int aws_http2_stream_get_sent_reset_error_code(struct aws_http_stream *http2_stream, uint32_t *out_http2_error);
11221124

11231125
AWS_EXTERN_C_END
1126+
AWS_POP_SANE_WARNING_LEVEL
11241127

11251128
#endif /* AWS_HTTP_REQUEST_RESPONSE_H */

include/aws/http/server.h

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
#include <aws/http/http.h>
1010

11+
AWS_PUSH_SANE_WARNING_LEVEL
12+
1113
struct aws_http_connection;
1214
struct aws_server_bootstrap;
1315
struct aws_socket_options;
@@ -194,5 +196,6 @@ AWS_HTTP_API
194196
bool aws_http_connection_is_server(const struct aws_http_connection *connection);
195197

196198
AWS_EXTERN_C_END
199+
AWS_POP_SANE_WARNING_LEVEL
197200

198201
#endif /* AWS_HTTP_SERVER_H */

include/aws/http/statistics.h

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
#include <aws/common/statistics.h>
1212

13+
AWS_PUSH_SANE_WARNING_LEVEL
14+
1315
enum aws_crt_http_statistics_category {
1416
AWSCRT_STAT_CAT_HTTP1_CHANNEL = AWS_CRT_STATISTICS_CATEGORY_BEGIN_RANGE(AWS_C_HTTP_PACKAGE_ID),
1517
AWSCRT_STAT_CAT_HTTP2_CHANNEL,
@@ -71,5 +73,6 @@ AWS_HTTP_API
7173
void aws_crt_statistics_http2_channel_reset(struct aws_crt_statistics_http2_channel *stats);
7274

7375
AWS_EXTERN_C_END
76+
AWS_POP_SANE_WARNING_LEVEL
7477

7578
#endif /* AWS_HTTP_STATISTICS_H */

include/aws/http/websocket.h

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
#include <aws/http/http.h>
99

10+
AWS_PUSH_SANE_WARNING_LEVEL
11+
1012
struct aws_http_header;
1113
struct aws_http_message;
1214

@@ -485,5 +487,6 @@ struct aws_http_message *aws_http_message_new_websocket_handshake_request(
485487
struct aws_byte_cursor host);
486488

487489
AWS_EXTERN_C_END
490+
AWS_POP_SANE_WARNING_LEVEL
488491

489492
#endif /* AWS_HTTP_WEBSOCKET_H */

0 commit comments

Comments
 (0)