Skip to content

Commit 745bf7a

Browse files
authored
Merge pull request #35 from pillo79/pr-warning-fixes
Warning cleanup
2 parents 01fd54a + fb521eb commit 745bf7a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/decoder.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@
66
This Source Code Form is subject to the terms of the Mozilla Public
77
License, v. 2.0. If a copy of the MPL was not distributed with this
88
file, You can obtain one at http://mozilla.org/MPL/2.0/.
9-
109
*/
1110

1211
#ifndef RPCLITE_DECODER_H
1312
#define RPCLITE_DECODER_H
1413

14+
// MsgPack log level
15+
#define DEBUGLOG_DEFAULT_LOG_LEVEL_WARN
16+
1517
#include "MsgPack.h"
1618
#include "transport.h"
1719
#include "rpclite_utils.h"
@@ -206,7 +208,7 @@ class RpcDecoder {
206208

207209
size_t bytes_checked = 0;
208210
size_t container_size;
209-
int type;
211+
int type = NO_MSG;
210212
MsgPack::Unpacker unpacker;
211213

212214
while (bytes_checked + offset < _bytes_stored){
@@ -343,4 +345,4 @@ class RpcDecoder {
343345

344346
};
345347

346-
#endif
348+
#endif

0 commit comments

Comments
 (0)