Compiler warnings and cleanup

This commit is contained in:
Shahram Najm 2022-03-12 22:25:05 +00:00
parent 6f155041a8
commit 29c0b0e8ea
2 changed files with 10 additions and 19 deletions

View File

@ -11,12 +11,13 @@
/* This file is automatically generated by ./grib2c.pl, do not edit */ /* This file is automatically generated by ./grib2c.pl, do not edit */
/* /* This is a mechanism where we generate C code in grib_templates.h
../templates/GRIB1.grib * from our GRIB sample files and then include the header so one
*/ * can instantiate samples without any disk access.
* This is now superseded by MEMFS
*/
#if 0
unsigned char _grib_template_GRIB1[] = { unsigned char _grib_template_GRIB1[] = {
0x47, 0x52, 0x49, 0x42, 0x00, 0x00, 0x6b, 0x01, 0x47, 0x52, 0x49, 0x42, 0x00, 0x00, 0x6b, 0x01,
0x00, 0x00, 0x34, 0x80, 0x62, 0x7f, 0xff, 0x80, 0x00, 0x00, 0x34, 0x80, 0x62, 0x7f, 0xff, 0x80,
0x81, 0x64, 0x01, 0xf4, 0x06, 0x03, 0x10, 0x0c, 0x81, 0x64, 0x01, 0xf4, 0x06, 0x03, 0x10, 0x0c,
@ -31,17 +32,9 @@ unsigned char _grib_template_GRIB1[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0b, 0x00,
0x80, 0x02, 0x44, 0xb9, 0x7d, 0x6e, 0x10, 0x37, 0x80, 0x02, 0x44, 0xb9, 0x7d, 0x6e, 0x10, 0x37,
0x37, 0x37, 0x37, 0x37, 0x37, 0x37,
}; };
/*
../templates/GRIB2.grib
*/
unsigned char _grib_template_GRIB2[] = { unsigned char _grib_template_GRIB2[] = {
0x47, 0x52, 0x49, 0x42, 0x00, 0x00, 0x00, 0x02, 0x47, 0x52, 0x49, 0x42, 0x00, 0x00, 0x00, 0x02,
0x00, 0x00, 0x00, 0xb8, 0x00, 0x00, 0x00, 0xb8, 0x00, 0x00, 0x00, 0xb8, 0x00, 0x00, 0x00, 0xb8,
0x00, 0x00, 0x00, 0x15, 0x01, 0x00, 0x62, 0x00, 0x00, 0x00, 0x00, 0x15, 0x01, 0x00, 0x62, 0x00,
@ -65,13 +58,10 @@ unsigned char _grib_template_GRIB2[] = {
0x39, 0x7d, 0x6e, 0x80, 0x02, 0x00, 0x00, 0x10, 0x39, 0x7d, 0x6e, 0x80, 0x02, 0x00, 0x00, 0x10,
0x00, 0x00, 0x00, 0x00, 0x06, 0x06, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x06, 0xff, 0x00,
0x00, 0x00, 0x05, 0x07, 0x37, 0x37, 0x37, 0x37, 0x00, 0x00, 0x05, 0x07, 0x37, 0x37, 0x37, 0x37,
}; };
static grib_templates templates[] = { static grib_templates templates[] = {
{"GRIB1", _grib_template_GRIB1, 107, }, {"GRIB1", _grib_template_GRIB1, 107,},
{"GRIB2", _grib_template_GRIB2, 184, }, {"GRIB2", _grib_template_GRIB2, 184,},
}; };
#endif

View File

@ -12,5 +12,6 @@
#define TIGGE_TOOLS_H #define TIGGE_TOOLS_H
void scan(const char* name); void scan(const char* name);
void validate(const char* path);
#endif #endif