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:
@ -214,8 +214,12 @@ void sp_cache_flush_obsolete(sp_cache **cp)
|
||||
Internal functions
|
||||
*************************************************************************/
|
||||
|
||||
static uchar *hash_get_key_for_sp_head(const uchar *ptr, size_t *plen,
|
||||
my_bool first)
|
||||
extern "C" uchar *hash_get_key_for_sp_head(const uchar *ptr, size_t *plen,
|
||||
my_bool first);
|
||||
extern "C" void hash_free_sp_head(void *p);
|
||||
|
||||
uchar *hash_get_key_for_sp_head(const uchar *ptr, size_t *plen,
|
||||
my_bool first)
|
||||
{
|
||||
sp_head *sp= (sp_head *)ptr;
|
||||
*plen= sp->m_qname.length;
|
||||
@ -223,8 +227,7 @@ static uchar *hash_get_key_for_sp_head(const uchar *ptr, size_t *plen,
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
hash_free_sp_head(void *p)
|
||||
void hash_free_sp_head(void *p)
|
||||
{
|
||||
sp_head *sp= (sp_head *)p;
|
||||
delete sp;
|
||||
|
Reference in New Issue
Block a user