Skip to content

Commit

Permalink
Fix build warnings about missing field initializer (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuj authored Dec 13, 2022
1 parent eab0848 commit ff251d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libmateweather/test_metar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion libmateweather/test_sun_moon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit ff251d6

Please sign in to comment.