summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-10-28 14:43:54 +0200
committerrbuj <[email protected]>2021-10-28 14:43:54 +0200
commitdac77230b5e3abab0b0f06cc99b8785e5f833625 (patch)
treec1555855d4314976410204c5ce8dc341b5754684
parent5e28b06dc6ae3c3e1f2412c13d97eb5f6b91a9bf (diff)
downloadlibmateweather-missing-field-initializers.tar.bz2
libmateweather-missing-field-initializers.tar.xz
Fix build warnings about missing field initializermissing-field-initializers
-rw-r--r--libmateweather/test_metar.c2
-rw-r--r--libmateweather/test_sun_moon.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libmateweather/test_metar.c b/libmateweather/test_metar.c
index b36e4d9..cbde991 100644
--- a/libmateweather/test_metar.c
+++ b/libmateweather/test_metar.c
@@ -21,7 +21,7 @@ main (int argc, char **argv)
GOptionEntry entries[] = {
{ "file", 'f', 0, G_OPTION_ARG_FILENAME, &filename,
"file constaining metar observations", NULL },
- { NULL }
+ { NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL }
};
GOptionContext* context;
GError* error = NULL;
diff --git a/libmateweather/test_sun_moon.c b/libmateweather/test_sun_moon.c
index abcded7..9107b5f 100644
--- a/libmateweather/test_sun_moon.c
+++ b/libmateweather/test_sun_moon.c
@@ -27,7 +27,7 @@ main (int argc, char **argv)
"observer's longitude in degrees east", NULL },
{ "time", 0, 0, G_OPTION_ARG_STRING, &gtime,
"time in seconds from Unix epoch", NULL },
- { NULL }
+ { NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL }
};
memset(&location, 0, sizeof(WeatherLocation));