diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-19 18:24:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-19 18:24:22 +0300 |
commit | 8dc7572164d1f630fed49e695d4bf62ea8e09a15 (patch) | |
tree | 66138d10ef1fd4f6d14666a5a078641e4c9f1b77 /src/common/sql.c | |
parent | c2c1322b230dc0f564397ac68615640f1083ee56 (diff) | |
download | hercules-8dc7572164d1f630fed49e695d4bf62ea8e09a15.tar.gz hercules-8dc7572164d1f630fed49e695d4bf62ea8e09a15.tar.bz2 hercules-8dc7572164d1f630fed49e695d4bf62ea8e09a15.tar.xz hercules-8dc7572164d1f630fed49e695d4bf62ea8e09a15.zip |
Fix all known warnings from compiler flags -Wformat*
Add all missing -Wformat flags into configure.
Diffstat (limited to 'src/common/sql.c')
-rw-r--r-- | src/common/sql.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/sql.c b/src/common/sql.c index b1e77e636..ed93169ea 100644 --- a/src/common/sql.c +++ b/src/common/sql.c @@ -467,7 +467,7 @@ static int Sql_P_BindSqlDataType(MYSQL_BIND* bind, enum SqlDataType buffer_type, case SQLDT_BLOB: bind->buffer_type = MYSQL_TYPE_BLOB; break; default: - ShowDebug("Sql_P_BindSqlDataType: unsupported buffer type (%d)\n", buffer_type); + ShowDebug("Sql_P_BindSqlDataType: unsupported buffer type (%u)\n", buffer_type); return SQL_ERROR; } bind->buffer = buffer; @@ -870,7 +870,7 @@ void hercules_mysql_error_handler(unsigned int ecode) { case 2003:/* Can't connect to MySQL (this error only happens here when failing to reconnect) */ if( mysql_reconnect_type == 1 ) { if( ++retry > mysql_reconnect_count ) { - ShowFatalError("MySQL has been unreachable for too long, %d reconnects were attempted. Shutting Down\n", retry); + ShowFatalError("MySQL has been unreachable for too long, %u reconnects were attempted. Shutting Down\n", retry); exit(EXIT_FAILURE); } } @@ -972,7 +972,7 @@ void Sql_HerculesUpdateCheck(Sql* self) { fclose(ifp); if( performed ) { - ShowSQL("- detected %d new "CL_WHITE"SQL updates"CL_RESET"\n",performed); + ShowSQL("- detected %u new "CL_WHITE"SQL updates"CL_RESET"\n",performed); ShowMessage("%s",StrBuf->Value(&buf)); ShowSQL("To manually skip, type: 'sql update skip <file name>'\n"); } |