Skip to content

Commit 81b0b39

Browse files
bugfix: change bit filed member type to unsigned to supress the warning.
1 parent 58d05c2 commit 81b0b39

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

src/ngx_http_rds.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,4 @@ typedef struct ngx_http_rds_column_s {
3434
} ngx_http_rds_column_t;
3535

3636

37-
38-
39-
4037
#endif /* NGX_HTTP_RDS_H */
41-

src/ngx_http_rds_csv_filter_module.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ typedef struct {
8080

8181
uint32_t field_data_rest;
8282

83-
ngx_flag_t header_sent:1;
84-
ngx_flag_t seen_stream_end:1;
85-
ngx_flag_t generated_col_names:1;
83+
uint32_t header_sent:1;
84+
uint32_t seen_stream_end:1;
85+
uint32_t generated_col_names:1;
8686
} ngx_http_rds_csv_ctx_t;
8787

8888

src/ngx_http_rds_utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ ngx_http_rds_parse_header(ngx_http_request_t *r, ngx_buf_t *b,
124124

125125
/* save insert id */
126126

127-
header->insert_id = *(uint64_t *)b->pos;
127+
header->insert_id = *(uint64_t *) b->pos;
128128

129129
b->pos += sizeof(uint64_t);
130130

0 commit comments

Comments
 (0)