summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Antoni Buj Gelonch <[email protected]>2022-12-13 05:10:00 +0100
committerGitHub <[email protected]>2022-12-13 04:10:00 +0000
commitff251d6e1a791306f815fbc56bccd08ae92836f4 (patch)
treef45c9a3b26e1f83adfd0c3f26f9ffdc338f0f4d5
parenteab084811d31d81faae5ed5749d2e9cb4fc29ad0 (diff)
downloadlibmateweather-ff251d6e1a791306f815fbc56bccd08ae92836f4.tar.bz2
libmateweather-ff251d6e1a791306f815fbc56bccd08ae92836f4.tar.xz
Fix build warnings about missing field initializer (#102)
-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));