Remove compile warnings re initializers

This commit is contained in:
Shahram Najm 2013-06-25 13:34:22 +01:00
parent 021857c7c0
commit 0d57cf00be
3 changed files with 3 additions and 7 deletions

View File

@ -96,7 +96,7 @@ static int notify_change(grib_action* act, grib_accessor * notified,
grib_accessor* changed)
{
grib_loader loader = { 0,};
grib_loader loader = { 0,0,0,0,0 };
grib_section *old_section = NULL;
grib_handle *h = notified->parent->h;

View File

@ -10,7 +10,6 @@
#include "grib_api_internal.h"
static void init_ibm_table();
typedef struct ibm_table_t ibm_table_t;
@ -23,7 +22,7 @@ struct ibm_table_t {
double vmax;
};
static ibm_table_t ibm_table={ 0,{0,},{0,} };
static ibm_table_t ibm_table={ 0, {0,}, {0,}, 0, 0 };
static void init_ibm_table() {
if (!ibm_table.inited) {

View File

@ -16,7 +16,6 @@
#if 1
static void init_ieee_table();
typedef struct ieee_table_t ieee_table_t;
@ -29,7 +28,7 @@ struct ieee_table_t {
double vmax;
};
static ieee_table_t ieee_table={ 0,{0,},{0,} };
static ieee_table_t ieee_table={ 0,{0,},{0,}, 0, 0 };
static void init_ieee_table() {
if (!ieee_table.inited) {
@ -73,8 +72,6 @@ static void binary_search(double xx[], const unsigned long n, double x, unsigned
*j=jl;
}
double grib_ieee_table_e(unsigned long e) {
if (!ieee_table.inited) init_ieee_table();
return ieee_table.e[e];