Skip to content

Commit 2a78718

Browse files
committed
Fix various warnings.
1 parent c8202ff commit 2a78718

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

cdk/mysqlx/tests/session_mysqlx-t.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class Session_mysqlx
5555
bytes data2((byte*)buffer, sz);
5656
codec.to_bytes(val, data2);
5757
int rc = memcmp(data.begin(), data2.begin(), sz);
58-
delete buffer;
58+
delete[] buffer;
5959
if (rc != 0)
6060
{
6161
throw "Diff data generated!";

cdk/parser/tokenizer.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ bool Tokenizer::parse_hex(size_t& i)
324324
{
325325
std::string val;
326326
bool has_value = false;
327-
int start = i;
327+
size_t start = i;
328328
if((_input[i] == 'X' || _input[i] == 'x') && next_char_is(i, '\''))
329329
{
330330
i+=2;

cdk/protocol/mysqlx/tests/proto_mysqlx_crud-t.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ class Expr_printer
377377
out_ind() << val <<endl;
378378
}
379379

380-
virtual void octets(bytes val)
380+
virtual void octets(bytes val, Octets_content_type)
381381
{
382382
out_ind() <<"\"" <<std::string(val.begin(), val.end()) <<"\"" <<endl;
383383
}
@@ -787,7 +787,7 @@ TEST_F(Protocol_mysqlx_xplugin, crud_projections)
787787
prc.list_begin();
788788

789789
Processor::Element_prc *ep;
790-
790+
791791
ep = prc.list_el();
792792
if (ep)
793793
{

cdk/protocol/mysqlx/tests/proto_mysqlx_msg-t.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ struct Scalar_checker
149149
// in documents obtained from parsing JSON strings, only scalar
150150
// values should be present, no expressions.
151151

152-
void octets(bytes) { FAIL(); }
152+
void octets(bytes, Octets_content_type) { FAIL(); }
153153
};
154154

155155

0 commit comments

Comments
 (0)