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:
@ -28,9 +28,9 @@
|
||||
#define KEYALG HA_KEY_ALG_RTREE
|
||||
|
||||
static int read_with_pos(MI_INFO * file, int silent);
|
||||
static void create_record(char *record,uint rownr);
|
||||
static void create_record1(char *record,uint rownr);
|
||||
static void print_record(char * record,my_off_t offs,const char * tail);
|
||||
static void create_record(uchar *record,uint rownr);
|
||||
static void create_record1(uchar *record,uint rownr);
|
||||
static void print_record(uchar * record,my_off_t offs,const char * tail);
|
||||
static int run_test(const char *filename);
|
||||
|
||||
static double rt_data[]=
|
||||
@ -108,8 +108,8 @@ static int run_test(const char *filename)
|
||||
int i;
|
||||
int error;
|
||||
int row_count=0;
|
||||
char record[MAX_REC_LENGTH];
|
||||
char read_record[MAX_REC_LENGTH];
|
||||
uchar record[MAX_REC_LENGTH];
|
||||
uchar read_record[MAX_REC_LENGTH];
|
||||
int upd= 10;
|
||||
ha_rows hrows;
|
||||
|
||||
@ -342,7 +342,7 @@ static int read_with_pos (MI_INFO * file,int silent)
|
||||
{
|
||||
int error;
|
||||
int i;
|
||||
char read_record[MAX_REC_LENGTH];
|
||||
uchar read_record[MAX_REC_LENGTH];
|
||||
|
||||
if (!silent)
|
||||
printf("- Reading rows with position\n");
|
||||
@ -385,12 +385,12 @@ static void bprint_record(char * record,
|
||||
#endif
|
||||
|
||||
|
||||
static void print_record(char * record,
|
||||
static void print_record(uchar * record,
|
||||
my_off_t offs __attribute__((unused)),
|
||||
const char * tail)
|
||||
{
|
||||
int i;
|
||||
char * pos;
|
||||
uchar * pos;
|
||||
double c;
|
||||
|
||||
printf(" rec=(%d)",(unsigned char)record[0]);
|
||||
@ -407,16 +407,16 @@ static void print_record(char * record,
|
||||
|
||||
|
||||
|
||||
static void create_record1(char *record,uint rownr)
|
||||
static void create_record1(uchar *record,uint rownr)
|
||||
{
|
||||
int i;
|
||||
char * pos;
|
||||
uchar * pos;
|
||||
double c=rownr+10;
|
||||
|
||||
bzero((char*) record,MAX_REC_LENGTH);
|
||||
record[0]=0x01; /* DEL marker */
|
||||
|
||||
for ( pos=record+1, i=0; i<2*ndims; i++)
|
||||
for (pos=record+1, i=0; i<2*ndims; i++)
|
||||
{
|
||||
memcpy(pos,&c,sizeof(c));
|
||||
float8store(pos,c);
|
||||
@ -426,7 +426,7 @@ static void create_record1(char *record,uint rownr)
|
||||
|
||||
#ifdef NOT_USED
|
||||
|
||||
static void create_record0(char *record,uint rownr)
|
||||
static void create_record0(uchar *record,uint rownr)
|
||||
{
|
||||
int i;
|
||||
char * pos;
|
||||
@ -449,16 +449,16 @@ static void create_record0(char *record,uint rownr)
|
||||
|
||||
#endif
|
||||
|
||||
static void create_record(char *record,uint rownr)
|
||||
static void create_record(uchar *record,uint rownr)
|
||||
{
|
||||
int i;
|
||||
char *pos;
|
||||
uchar *pos;
|
||||
double *data= rt_data+rownr*4;
|
||||
record[0]=0x01; /* DEL marker */
|
||||
for ( pos=record+1, i=0; i<ndims*2; i++)
|
||||
for (pos=record+1, i=0; i<ndims*2; i++)
|
||||
{
|
||||
float8store(pos,data[i]);
|
||||
pos+=8;
|
||||
float8store(pos,data[i]);
|
||||
pos+=8;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user