From 32900991ace3ca6e0ab5dd2e8e21a228c76942d1 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Wed, 8 May 2013 11:42:55 +0100 Subject: [PATCH] Fixed compiler warnings --- examples/C/new_sample.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/C/new_sample.c b/examples/C/new_sample.c index bcd8eacd4..ecc9884e1 100644 --- a/examples/C/new_sample.c +++ b/examples/C/new_sample.c @@ -8,9 +8,7 @@ int main(int argc,const char** argv) grib_handle *h = NULL; size_t size = 0; double* vdouble = NULL; - long* vlong = NULL; FILE* f = NULL; - const char* p = NULL; const void* buffer = NULL; if(argc != 2) { @@ -226,7 +224,7 @@ int main(int argc,const char** argv) size = 496; vdouble = (double*)calloc(size,sizeof(double)); if(!vdouble) { - fprintf(stderr,"failed to allocate %d bytes\n",size*sizeof(double)); + fprintf(stderr,"failed to allocate %lu bytes\n",size*sizeof(double)); exit(1); }