mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fixed a lot of compiler warnings and errors detected by Forte C++ on Solaris
Faster thr_alarm() Added 'Opened_files' status variable to track calls to my_open() Don't give warnings when running mysql_install_db Added option --source-install to mysql_install_db I had to do the following renames() as used polymorphism didn't work with Forte compiler on 64 bit systems index_read() -> index_read_map() index_read_idx() -> index_read_idx_map() index_read_last() -> index_read_last_map()
This commit is contained in:
@ -176,6 +176,8 @@ static bool create_pid_file()
|
||||
appropriately.
|
||||
*************************************************************************/
|
||||
|
||||
extern "C" void reap_child(int);
|
||||
|
||||
void reap_child(int __attribute__((unused)) signo)
|
||||
{
|
||||
/* NOTE: As we have only one child, no need to cycle waitpid(). */
|
||||
@ -197,6 +199,7 @@ void reap_child(int __attribute__((unused)) signo)
|
||||
Set termination status and return.
|
||||
*************************************************************************/
|
||||
|
||||
extern "C" void terminate(int signo);
|
||||
void terminate(int signo)
|
||||
{
|
||||
shutdown_request_signo= signo;
|
||||
|
@ -27,7 +27,9 @@
|
||||
|
||||
enum { THREAD_KICK_OFF_SIGNAL= SIGUSR2 };
|
||||
|
||||
static void handle_signal(int __attribute__((unused)) sig_no)
|
||||
extern "C" void handle_signal(int);
|
||||
|
||||
void handle_signal(int __attribute__((unused)) sig_no)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user