Skip to content

Commit

Permalink
ECC-1996: Fix compiler warnings and thread test
Browse files Browse the repository at this point in the history
  • Loading branch information
shahramn committed Dec 18, 2024
1 parent 546c166 commit f209000
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 16 deletions.
6 changes: 3 additions & 3 deletions src/dumper/grib_dumper.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ class Dumper
long count_ = 0;

private:
const char* name_ = nullptr;
size_t size_ = 0;
int inited_ = 0;
// const char* name_ = nullptr;
// size_t size_ = 0;
// int inited_ = 0;
};

} // namespace eccodes
2 changes: 1 addition & 1 deletion src/dumper/grib_dumper_class_bufr_decode_C.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class BufrDecodeC : public Dumper

long section_offset_ = 0;
long empty_ = 0;
long end_ = 0;
//long end_ = 0;
long isLeaf_ = 0;
long isAttribute_ = 0;
grib_string_list* keys_ = nullptr;
Expand Down
2 changes: 1 addition & 1 deletion src/dumper/grib_dumper_class_bufr_decode_filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class BufrDecodeFilter : public Dumper
long section_offset_ = 0;
long begin_ = 0;
long empty_ = 0;
long end_ = 0;
//long end_ = 0;
long isLeaf_ = 0;
long isAttribute_ = 0;
grib_string_list* keys_ = nullptr;
Expand Down
2 changes: 1 addition & 1 deletion src/dumper/grib_dumper_class_bufr_decode_fortran.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class BufrDecodeFortran : public Dumper
private:
long section_offset_ = 0;
long empty_ = 0;
long end_ = 0;
// long end_ = 0;
long isLeaf_ = 0;
long isAttribute_ = 0;
grib_string_list* keys_ = nullptr;
Expand Down
2 changes: 1 addition & 1 deletion src/dumper/grib_dumper_class_bufr_decode_python.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class BufrDecodePython : public Dumper

long section_offset_ = 0;
long empty_ = 0;
long end_ = 0;
// long end_ = 0;
long isLeaf_ = 0;
long isAttribute_ = 0;
grib_string_list* keys_ = nullptr;
Expand Down
2 changes: 1 addition & 1 deletion src/dumper/grib_dumper_class_bufr_encode_C.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class BufrEncodeC : public Dumper
static inline int depth_ = 0;
long section_offset_ = 0;
long empty_ = 0;
long end_ = 0;
//long end_ = 0;
long isLeaf_ = 0;
long isAttribute_ = 0;
grib_string_list* keys_ = nullptr;
Expand Down
2 changes: 1 addition & 1 deletion src/dumper/grib_dumper_class_bufr_encode_filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class BufrEncodeFilter : public Dumper
long section_offset_ = 0;
long begin_ = 0;
long empty_ = 0;
long end_ = 0;
//long end_ = 0;
long isLeaf_ = 0;
long isAttribute_ = 0;
grib_string_list* keys_ = nullptr;
Expand Down
2 changes: 1 addition & 1 deletion src/dumper/grib_dumper_class_bufr_encode_fortran.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class BufrEncodeFortran : public Dumper

long section_offset_ = 0;
long empty_ = 0;
long end_ = 0;
//long end_ = 0;
long isLeaf_ = 0;
long isAttribute_ = 0;
grib_string_list* keys_ = nullptr;
Expand Down
2 changes: 1 addition & 1 deletion src/dumper/grib_dumper_class_bufr_encode_python.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class BufrEncodePython : public Dumper
static inline int depth_ = 0;
long section_offset_ = 0;
long empty_ = 0;
long end_ = 0;
//long end_ = 0;
long isLeaf_ = 0;
long isAttribute_ = 0;
grib_string_list* keys_ = nullptr;
Expand Down
2 changes: 1 addition & 1 deletion src/dumper/grib_dumper_class_bufr_simple.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class BufrSimple : public Dumper
private:
long section_offset_ = 0;
long empty_ = 0;
long end_ = 0;
//long end_ = 0;
long isLeaf_ = 0;
long isAttribute_ = 0;
long numberOfSubsets_ = 0;
Expand Down
4 changes: 2 additions & 2 deletions src/dumper/grib_dumper_class_default.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ class Default : public Dumper

private:
long section_offset_ = 0;
long begin_ = 0;
long theEnd_ = 0;
//long begin_ = 0;
//long theEnd_ = 0;

void aliases(grib_accessor* a);
void print_offset(FILE* out, grib_accessor* a);
Expand Down
2 changes: 1 addition & 1 deletion src/dumper/grib_dumper_class_grib_encode_C.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class GribEncodeC : public Dumper
void footer(const grib_handle*) override;

private:
int cr_ = 0;
// int cr_ = 0;
};

} // namespace eccodes::dumper
3 changes: 2 additions & 1 deletion tests/bufr_encode_pthreads.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#include "eccodes.h"
#include "grib_api_internal.h"
#include "grib_dumper_factory.h"

/* These are passed in via argv */
static size_t NUM_THREADS = 0;
Expand Down Expand Up @@ -64,7 +65,7 @@ static int encode_file(char* template_file, char* output_file)
}
if (opt_dump) {
FILE* devnull = fopen("/dev/null", "w");
grib_dumper* dumper = NULL;
eccodes::Dumper* dumper = NULL;
const char* dumper_name = "bufr_simple";
unsigned long dump_flags = CODES_DUMP_FLAG_ALL_DATA;
/* codes_dump_content(source_handle,devnull, "json", 1024, NULL); */ /* JSON dump with all attributes */
Expand Down

0 comments on commit f209000

Please sign in to comment.