From c6d7ac6a938f97b3909c31dcaade8f8697cfd8fe Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 6 Sep 2002 18:15:40 +0500 Subject: Some warning fixes --- myisam/sp_test.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'myisam/sp_test.c') diff --git a/myisam/sp_test.c b/myisam/sp_test.c index 9d32b3e623d..4c267c08c14 100644 --- a/myisam/sp_test.c +++ b/myisam/sp_test.c @@ -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); } -- cgit v1.2.1