Commit 6d6d0d98 authored by unknown's avatar unknown

Some warning fixes

parent 71257043
......@@ -32,7 +32,7 @@ static void print_record(char * record,my_off_t offs,const char * tail);
static int run_test(const char *filename);
int main(int argc,char *argv[])
int main(int argc __attribute__((unused)),char *argv[] __attribute__((unused)))
{
MY_INIT(argv[0]);
exit(run_test("rt_test"));
......@@ -199,7 +199,6 @@ int run_test(const char *filename)
}
}
/*
if (!silent)
printf("- Updating rows with position\n");
......@@ -227,8 +226,6 @@ int run_test(const char *filename)
}
}
*/
if((error=read_with_pos(file,silent)))
goto err;
......@@ -343,7 +340,8 @@ static int read_with_pos (MI_INFO * file,int silent)
}
static void bprint_record(char * record, my_off_t offs,const char * tail)
static void bprint_record(char * record, my_off_t offs __attribute__((unused)),
const char * tail)
{
int i;
char * pos;
......
......@@ -94,7 +94,8 @@ static int sp_mbr_from_wkb(uchar *wkb, uint size, uint n_dims, double *mbr)
Add one point stored in wkb to mbr
*/
static int sp_add_point_to_mbr(uchar *(*wkb), uchar *end, uint n_dims,
uchar byte_order, double *mbr)
uchar byte_order __attribute__((unused)),
double *mbr)
{
double ord;
double *mbr_end = mbr + n_dims * 2;
......
......@@ -41,7 +41,7 @@ static void rtree_PrintWKB(uchar *wkb, uint n_dims);
static char blob_key[MAX_REC_LENGTH];
int main(int argc,char *argv[])
int main(int argc __attribute__((unused)),char *argv[] __attribute__((unused)))
{
MY_INIT(argv[0]);
exit(run_test("sp_test"));
......@@ -320,14 +320,16 @@ static int read_with_pos (MI_INFO * file,int silent)
}
static void bprint_record(char * record, my_off_t offs,const char * tail)
static void bprint_record(char * record, my_off_t offs __attribute__((unused)),
const char * tail)
{
int i;
char * pos;
i=(unsigned char)record[0];
printf("%02X ",i);
for( pos=record+1, i=0; i<32; i++,pos++){
for( pos=record+1, i=0; i<32; i++,pos++)
{
int b=(unsigned char)*pos;
printf("%02X",b);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment