Commit 6b317c1c authored by Marko Mäkelä's avatar Marko Mäkelä

Remove some redundant code flagged by clang or GCC

parent 64be4ab4
...@@ -192,7 +192,7 @@ static void PROFILE_Save( FILE *file, PROFILESECTION *section ) ...@@ -192,7 +192,7 @@ static void PROFILE_Save( FILE *file, PROFILESECTION *section )
} }
for (key = section->key; key; key = key->next) for (key = section->key; key; key = key->next)
if (key->name && key->name[0]) { if (key->name[0]) {
fprintf(file, "%s", SVP(key->name)); fprintf(file, "%s", SVP(key->name));
if (key->value) if (key->value)
......
...@@ -1289,7 +1289,6 @@ bool ODBConn::DriverConnect(DWORD Options) ...@@ -1289,7 +1289,6 @@ bool ODBConn::DriverConnect(DWORD Options)
#else // !__WIN__ #else // !__WIN__
HWND hWnd = (HWND)1; HWND hWnd = (HWND)1;
#endif // !__WIN__ #endif // !__WIN__
PGLOBAL& g = m_G;
wConnectOption = SQL_DRIVER_NOPROMPT; wConnectOption = SQL_DRIVER_NOPROMPT;
//else if (Options & forceOdbcDialog) //else if (Options & forceOdbcDialog)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment