diff options
author | Monty <monty@mariadb.org> | 2019-08-08 22:52:22 +0300 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2019-08-23 22:03:54 +0200 |
commit | a38f47e90ce8273e83b4151cd93a0a224420f69b (patch) | |
tree | 3faafa530d602fe2440dfaf13dec4ad23e24c265 /storage/connect/filamgz.cpp | |
parent | de8b51fdc9d998fdf9c2d5c317a6da063c73d84a (diff) | |
download | mariadb-git-a38f47e90ce8273e83b4151cd93a0a224420f69b.tar.gz |
Fixed compiler warnings from connect engine
- clang complains about register in C++
- Removed not used variables
- Fixed bug when printing date in filamdbf.cpp
- Added {} to fix warning about dangling else
- Changed connect_done_func() to be global to remove conflict with header
files
- Added extra () around assignment in if
Diffstat (limited to 'storage/connect/filamgz.cpp')
-rw-r--r-- | storage/connect/filamgz.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/storage/connect/filamgz.cpp b/storage/connect/filamgz.cpp index 880db54c91d..f7517b53b8f 100644 --- a/storage/connect/filamgz.cpp +++ b/storage/connect/filamgz.cpp @@ -647,7 +647,7 @@ int ZBKFAM::WriteBuffer(PGLOBAL g) int ZBKFAM::DeleteRecords(PGLOBAL g, int irc) { if (irc == RC_EF) { - LPCSTR name = Tdbp->GetName(); + (void) Tdbp->GetName(); // XXX Should be removed ? PDOSDEF defp = (PDOSDEF)Tdbp->GetDef(); defp->SetBlock(0); @@ -673,7 +673,7 @@ void ZBKFAM::CloseTableFile(PGLOBAL g, bool) int rc = RC_OK; if (Tdbp->GetMode() == MODE_INSERT) { - LPCSTR name = Tdbp->GetName(); + (void) Tdbp->GetName(); // XXX Should be removed? PDOSDEF defp = (PDOSDEF)Tdbp->GetDef(); if (CurNum && !Closing) { @@ -1355,7 +1355,7 @@ void ZLBFAM::CloseTableFile(PGLOBAL g, bool) int rc = RC_OK; if (Tdbp->GetMode() == MODE_INSERT) { - LPCSTR name = Tdbp->GetName(); + (void) Tdbp->GetName(); // XXX Should be removed? PDOSDEF defp = (PDOSDEF)Tdbp->GetDef(); // Closing is True if last Write was in error |