mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
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
This commit is contained in:
@@ -671,8 +671,8 @@ TDBDIR::TDBDIR(PSZ fpat) : TDBASE((PTABDEF)NULL)
|
||||
/***********************************************************************/
|
||||
char* TDBDIR::Path(PGLOBAL g)
|
||||
{
|
||||
PCATLG cat = PlgGetCatalog(g);
|
||||
PTABDEF defp = (PTABDEF)To_Def;
|
||||
(void) PlgGetCatalog(g); // XXX Should be removed?
|
||||
PTABDEF defp = (PTABDEF)To_Def;
|
||||
|
||||
#if defined(__WIN__)
|
||||
if (!*Drive) {
|
||||
@@ -708,9 +708,9 @@ PCOL TDBDIR::MakeCol(PGLOBAL g, PCOLDEF cdp, PCOL cprec, int n)
|
||||
int TDBDIR::GetMaxSize(PGLOBAL g)
|
||||
{
|
||||
if (MaxSize < 0) {
|
||||
int rc, n = -1;
|
||||
int n = -1;
|
||||
#if defined(__WIN__)
|
||||
|
||||
int rc;
|
||||
// Start searching files in the target directory.
|
||||
hSearch = FindFirstFile(Path(g), &FileData);
|
||||
|
||||
|
Reference in New Issue
Block a user