mirror of
https://github.com/MariaDB/server.git
synced 2026-05-09 16:44:29 +02:00
Removed compiler warnings
Ensure that my_size_t is always unsigned (to get predictiable results from system to system) Removed some %lld, as these are not portable BUILD/FINISH.sh: Remove configure files from storage engines (as some of them may be old versions and may cause conflicts) client/mysqldump.c: Removed compiler warning client/mysqlslap.c: Removed compiler warning client/mysqltest.c: Removed compiler warning cmd-line-utils/readline/bind.c: Removed compiler warning cmd-line-utils/readline/histfile.c: Removed compiler warning include/my_global.h: Ensure that my_size_t is always unsigned (to get predictiable results from system to system) Moved my_offset_t here from parse_file.h sql/event_data_objects.cc: Removed compiler warning sql/event_scheduler.cc: Removed compiler warning sql/field.h: Removed compiler warning sql/ha_ndbcluster_binlog.cc: Removed compiler warning sql/ha_partition.cc: Removed compiler warning sql/item_strfunc.cc: Removed compiler warning sql/log_event.cc: Removed compiler warning sql/mysqld.cc: Removed compiler warning sql/parse_file.h: Moved my_offset_t to my_global.h sql/rpl_utility.cc: Removed compiler warning sql/sql_binlog.cc: Removed compiler warning sql/sql_cache.cc: Removed compiler warning sql/tztime.cc: Removed compiler warning storage/archive/ha_archive.cc: Removed compiler warning Removed %lld as it's not portable storage/heap/hp_write.c: Removed compiler warning storage/innobase/os/os0file.c: Removed compiler warning storage/myisam/myisampack.c: Removed compiler warning storage/myisammrg/myrg_rkey.c: Removed compiler warning storage/ndb/include/kernel/signaldata/DictTabInfo.hpp: Use my_offsetof instead of offsetof to get rid of compiler warnings storage/ndb/src/kernel/blocks/dbdict/printSchemaFile.cpp: Removed compiler warning storage/ndb/src/kernel/blocks/dbtup/DbtupRoutines.cpp: Removed compiler warning Note: Someone from NDB team should check this fix! storage/ndb/src/kernel/vm/Rope.cpp: Removed compiler warning storage/ndb/src/mgmapi/mgmapi.cpp: Removed compiler warning storage/ndb/src/ndbapi/Ndb.cpp: Removed compiler warning storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp: Removed compiler warning storage/ndb/src/ndbapi/NdbScanOperation.cpp: Removed compiler warning storage/ndb/src/ndbapi/NdbTransaction.cpp: Removed compiler warning storage/ndb/src/ndbapi/Ndblist.cpp: Removed compiler warning
This commit is contained in:
parent
24bbc92bdd
commit
c1477a3f20
35 changed files with 168 additions and 152 deletions
|
|
@ -1218,7 +1218,8 @@ Event_queue_element::compute_next_execution_time()
|
|||
|
||||
my_tz_UTC->gmt_sec_to_TIME(&time_now, current_thd->query_start());
|
||||
|
||||
DBUG_PRINT("info",("NOW=[%llu]", TIME_to_ulonglong_datetime(&time_now)));
|
||||
DBUG_PRINT("info",("NOW: [%lu]",
|
||||
(ulong) TIME_to_ulonglong_datetime(&time_now)));
|
||||
|
||||
/* if time_now is after ends don't execute anymore */
|
||||
if (!ends_null && (tmp= my_time_compare(&ends, &time_now)) == -1)
|
||||
|
|
@ -1300,7 +1301,8 @@ Event_queue_element::compute_next_execution_time()
|
|||
}
|
||||
else
|
||||
{
|
||||
DBUG_PRINT("info",("Next[%llu]",TIME_to_ulonglong_datetime(&next_exec)));
|
||||
DBUG_PRINT("info",("Next[%lu]",
|
||||
(ulong) TIME_to_ulonglong_datetime(&next_exec)));
|
||||
execute_at= next_exec;
|
||||
execute_at_null= FALSE;
|
||||
}
|
||||
|
|
@ -1322,7 +1324,8 @@ Event_queue_element::compute_next_execution_time()
|
|||
expression, interval))
|
||||
goto err;
|
||||
execute_at= next_exec;
|
||||
DBUG_PRINT("info",("Next[%llu]",TIME_to_ulonglong_datetime(&next_exec)));
|
||||
DBUG_PRINT("info",("Next[%lu]",
|
||||
(ulong) TIME_to_ulonglong_datetime(&next_exec)));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -1356,7 +1359,8 @@ Event_queue_element::compute_next_execution_time()
|
|||
expression, interval))
|
||||
goto err;
|
||||
execute_at= next_exec;
|
||||
DBUG_PRINT("info",("Next[%llu]",TIME_to_ulonglong_datetime(&next_exec)));
|
||||
DBUG_PRINT("info",("Next[%lu]",
|
||||
(ulong) TIME_to_ulonglong_datetime(&next_exec)));
|
||||
}
|
||||
execute_at_null= FALSE;
|
||||
}
|
||||
|
|
@ -1393,8 +1397,8 @@ Event_queue_element::compute_next_execution_time()
|
|||
}
|
||||
else
|
||||
{
|
||||
DBUG_PRINT("info", ("Next[%llu]",
|
||||
TIME_to_ulonglong_datetime(&next_exec)));
|
||||
DBUG_PRINT("info", ("Next[%lu]",
|
||||
(ulong) TIME_to_ulonglong_datetime(&next_exec)));
|
||||
execute_at= next_exec;
|
||||
execute_at_null= FALSE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue