mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fixed a LOT of compiler warnings
Added missing DBUG_RETURN statements (in mysqldump.c) Added missing enums Fixed a lot of wrong DBUG_PRINT() statements, some of which could cause crashes Removed usage of %lld and %p in printf strings as these are not portable or produces different results on different systems.
This commit is contained in:
@ -248,14 +248,15 @@ print_plan(JOIN* join, uint idx, double record_count, double read_time,
|
||||
if (join->best_read == DBL_MAX)
|
||||
{
|
||||
fprintf(DBUG_FILE,
|
||||
"%s; idx:%u, best: DBL_MAX, atime: %g, itime: %g, count: %g\n",
|
||||
info, idx, current_read_time, read_time, record_count);
|
||||
"%s; idx: %u best: DBL_MAX atime: %g itime: %g count: %g\n",
|
||||
info, idx, current_read_time, read_time, record_count);
|
||||
}
|
||||
else
|
||||
{
|
||||
fprintf(DBUG_FILE,
|
||||
"%s; idx:%u, best: %g, accumulated: %g, increment: %g, count: %g\n",
|
||||
info, idx, join->best_read, current_read_time, read_time, record_count);
|
||||
"%s; idx :%u best: %g accumulated: %g increment: %g count: %g\n",
|
||||
info, idx, join->best_read, current_read_time, read_time,
|
||||
record_count);
|
||||
}
|
||||
|
||||
/* Print the tables in JOIN->positions */
|
||||
|
Reference in New Issue
Block a user