fixed warnings unused variable

added .gitignore entries to filter out stuff produced by make
This commit is contained in:
Enrico Fucile 2014-07-31 16:23:05 +01:00
parent 090b8a9c6c
commit d87feb2477
4 changed files with 69 additions and 4 deletions

67
.gitignore vendored
View File

@ -206,4 +206,71 @@ ehthumbs.db
Thumbs.db
.directory
data/
CMakeLists.txt.user*
#some config
myconfig*
myconfigMem*
myconfigO*
myconfigemos*
myconfigemosgprof*
myconfiggprof*
myconfignopy*
#from make
examples/C/check_gaussian_grid
examples/C/clone
examples/C/iterator_bitmap
examples/C/new_sample
examples/F90/f_copy_message
examples/F90/f_copy_namespace
examples/F90/f_count_messages
examples/F90/f_get
examples/F90/f_get_data
examples/F90/f_get_pl
examples/F90/f_get_pv
examples/F90/f_get_set_uuid
examples/F90/f_index
examples/F90/f_keys_iterator
examples/F90/f_multi
examples/F90/f_multi_write
examples/F90/f_nearest
examples/F90/f_new_from_file
examples/F90/f_precision
examples/F90/f_print_data
examples/F90/f_read_from_file
examples/F90/f_read_message
examples/F90/f_samples
examples/F90/f_set
examples/F90/f_set_bitmap
examples/F90/f_set_gvc
examples/F90/f_set_missing
examples/F90/f_set_pv
examples/python/.libs/
examples/python/my.idx
examples/python/p_count_messages
examples/python/p_iterator
examples/python/p_keys_iterator
examples/python/p_print_data
tools/bufr_compare
tools/bufr_copy
tools/bufr_dump
tools/bufr_filter
tools/bufr_get
tools/bufr_index_build
tools/bufr_ls
tools/bufr_set
tools/grib_to_json
tools/metar_dump
tools/metar_filter
tools/metar_get
tools/metar_ls
tools/taf_dump
tools/taf_filter
tools/taf_get
tools/taf_ls
python/.libs/
python/gribapi_swig.py
python/gribapi_swig_wrap.c

View File

@ -184,7 +184,6 @@ static unsigned long nbits[32]={
static int number_of_bits(unsigned long x, long* result)
{
int err = 0;
const int count = sizeof(nbits)/sizeof(nbits[0]);
unsigned long *n=nbits;
*result=0;

View File

@ -1591,7 +1591,7 @@ void grib_index_dump(FILE* fout, grib_index* index)
grib_field* fld = ftree->field;
if (fld) {
grib_file* file = fld->file;
field_file = fld->file->name;
field_file = file->name;
}
}
if (field_file) fprintf(fout, "Field file: %s\n", field_file);

View File

@ -56,8 +56,7 @@ void test_gaussian_latitudes(int order)
{
int ret = 0;
const int num = 2 * order;
const double tolerance = 1e-6;
double lat1 = 0, lat2 = 0, lon2 = 0;
double lat1 = 0, lat2 = 0;
double* lats = (double*)malloc( sizeof(double)*num );