- Fix some GCC compiler eroors and warnings
modified: storage/connect/ha_connect.cc storage/connect/odbconn.cpp storage/connect/odbconn.h
This commit is contained in:
parent
bb597a765d
commit
89e71ffb40
@ -3734,7 +3734,7 @@ static bool CheckSelf(PGLOBAL g, TABLE_SHARE *s, const char *host,
|
||||
return false;
|
||||
else if (tab && stricmp(tab, s->table_name.str))
|
||||
return false;
|
||||
else if (port && port != GetDefaultPort())
|
||||
else if (port && port != (signed)GetDefaultPort())
|
||||
return false;
|
||||
|
||||
strcpy(g->Message, "This MySQL table is defined on itself");
|
||||
|
@ -1113,7 +1113,7 @@ bool ODBConn::Connect(DWORD Options)
|
||||
if (hWnd == NULL)
|
||||
hWnd = GetDesktopWindow();
|
||||
#else // !WIN32
|
||||
HWND hWnd = NULL;
|
||||
HWND hWnd = 1;
|
||||
#endif // !WIN32
|
||||
PGLOBAL& g = m_G;
|
||||
PDBUSER dup = PlgGetUser(g);
|
||||
|
@ -115,7 +115,7 @@ class ODBConn : public BLOCK {
|
||||
public:
|
||||
ODBConn(PGLOBAL g, TDBODBC *tdbp);
|
||||
|
||||
static enum DOP { // Db Open oPtions
|
||||
enum DOP { // Db Open oPtions
|
||||
traceSQL = 0x0001, // Trace SQL calls
|
||||
openReadOnly = 0x0002, // Open database read only
|
||||
useCursorLib = 0x0004, // Use ODBC cursor lib
|
||||
|
Loading…
x
Reference in New Issue
Block a user