mirror of https://github.com/ecmwf/eccodes.git
Compiler warnings
This commit is contained in:
parent
5f07acee77
commit
1c806433d7
|
@ -51,6 +51,7 @@ struct table_entry
|
|||
grib_accessor_class **cclass;
|
||||
};
|
||||
|
||||
#ifdef ACCESSOR_FACTORY_USE_TRIE
|
||||
/* Note: A fast cut-down version of strcmp which does NOT return -1 */
|
||||
/* 0 means input strings are equal and 1 means not equal */
|
||||
static GRIB_INLINE int grib_inline_strcmp(const char* a,const char* b)
|
||||
|
@ -65,6 +66,7 @@ static struct table_entry table[] =
|
|||
/* This file is generated by ./make_class.pl */
|
||||
#include "grib_accessor_factory.h"
|
||||
};
|
||||
#endif
|
||||
|
||||
#define NUMBER(x) (sizeof(x)/sizeof(x[0]))
|
||||
|
||||
|
@ -98,6 +100,7 @@ grib_section* grib_create_root_section(const grib_context *context, grib_handle
|
|||
}
|
||||
|
||||
/* Only used if ACCESSOR_FACTORY_USE_TRIE */
|
||||
#ifdef ACCESSOR_FACTORY_USE_TRIE
|
||||
static GRIB_INLINE grib_accessor_class* get_class(grib_context* c,char* type)
|
||||
{
|
||||
int i;
|
||||
|
@ -120,6 +123,7 @@ static GRIB_INLINE grib_accessor_class* get_class(grib_context* c,char* type)
|
|||
grib_context_log(c,GRIB_LOG_FATAL,"unable to create class %s",type);
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
grib_accessor* grib_accessor_factory(grib_section* p, grib_action* creator,
|
||||
const long len, grib_arguments* params)
|
||||
|
|
Loading…
Reference in New Issue