Skip to content

Commit 76801fa

Browse files
authored
fix: werror in ci and warning that slipped by (#1297)
* fix: werror in ci and warning that slipped by * Ignore bison warnings * Fix C++17 compat warning
1 parent 73b1dd3 commit 76801fa

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
-DCMAKE_C_COMPILER="${{matrix.compiler.c}}" \
8585
-DCMAKE_CXX_COMPILER="${{matrix.compiler.cxx}}" \
8686
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
87-
-DCMAKE_CXX_FLAGS="${{matrix.compiler.cxx_flags}}" \
87+
-DCMAKE_CXX_FLAGS="${{matrix.cxx_flags}}" \
8888
-L
8989
cd ${{github.workspace}}/build && pwd
9090
du -hcs _deps/

src/core/search/parser.y

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
%code {
2727
#include "core/search/query_driver.h"
2828

29+
// Have to disable because GCC doesn't understand `symbol_type`'s union
30+
// implementation
31+
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
32+
2933
#define yylex driver->scanner()->Lex
3034

3135
using namespace std;

src/facade/reply_builder.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ DoubleToStringConverter dfly_conv(kConvFlags, "inf", "nan", 'e', -6, 21, 6, 0);
3535

3636
} // namespace
3737

38-
SinkReplyBuilder::SinkReplyBuilder(::io::Sink* sink) : sink_(sink) {
38+
SinkReplyBuilder::SinkReplyBuilder(::io::Sink* sink)
39+
: sink_(sink), should_batch_(false), should_aggregate_(false) {
3940
}
4041

4142
void SinkReplyBuilder::CloseConnection() {

src/facade/reply_builder.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ class SinkReplyBuilder {
119119
size_t io_write_bytes_ = 0;
120120
absl::flat_hash_map<std::string, uint64_t> err_count_;
121121

122-
bool should_batch_ : 1 = false;
122+
bool should_batch_ : 1;
123123

124124
// Similarly to batch mode but is controlled by at operation level.
125-
bool should_aggregate_ : 2 = false;
125+
bool should_aggregate_ : 1;
126126
uint32_t batch_cnt_ = 0;
127127
};
128128

src/server/stream_family.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ struct ReadOpts {
8989
uint32_t count = kuint32max;
9090
// Contains the time to block waiting for entries, or -1 if should not block.
9191
int64_t timeout = -1;
92-
size_t streams_arg;
92+
size_t streams_arg = 0;
9393
};
9494

9595
const char kInvalidStreamId[] = "Invalid stream ID specified as stream command argument";

0 commit comments

Comments
 (0)