diff options
author | portix <none@none> | 2012-12-28 19:23:46 +0100 |
---|---|---|
committer | portix <none@none> | 2012-12-28 19:23:46 +0100 |
commit | 60a66c73df1b8df2451587b043535347f72a0123 (patch) | |
tree | db9d9f896b202e15a5d9b7a6fe22cb52fb59dc73 | |
parent | 6964518fd0cdeadff2f64181f5f9c265b6952536 (diff) | |
download | dwb-60a66c73df1b8df2451587b043535347f72a0123.zip |
Get rid of missing-field-initializers warning in GOptionEntry-array
-rw-r--r-- | src/application.c | 2 | ||||
-rw-r--r-- | tools/Makefile | 2 | ||||
-rw-r--r-- | tools/dwbem.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/application.c b/src/application.c index 79652ffc..aa393cf6 100644 --- a/src/application.c +++ b/src/application.c @@ -51,7 +51,7 @@ static GOptionEntry options[] = { { "execute", 'x', 0, G_OPTION_ARG_STRING_ARRAY, &s_opt_exe, "Execute commands", NULL}, { "version", 'v', 0, G_OPTION_ARG_NONE, &s_opt_version, "Show version information and exit", NULL}, { "enable-scripts", 'S', 0, G_OPTION_ARG_NONE, &s_opt_enable_scripts, "Enable javascript api", NULL}, - { NULL } + { NULL, 0, 0, 0, NULL, NULL, NULL } }; static GOptionContext *option_context; /* }}} */ diff --git a/tools/Makefile b/tools/Makefile index 3c103179..73eabf6f 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -11,7 +11,7 @@ SYSTEM_EXTENSION_DIR=$(PREFIX)/share/dwb/extensions CFLAGS := $(CFLAGS) CFLAGS += -std=c99 CFLAGS += -Wall -g -CFLAGS += -Wextra -Werror=format-security +CFLAGS += -Wextra -Werror=format-security CFLAGS += $(shell pkg-config --cflags $(LIBS)) CFLAGS += -DSYSTEM_EXTENSION_DIR=\"$(SYSTEM_EXTENSION_DIR)\" diff --git a/tools/dwbem.c b/tools/dwbem.c index 3b9f932f..649f5f60 100644 --- a/tools/dwbem.c +++ b/tools/dwbem.c @@ -1079,7 +1079,7 @@ main(int argc, char **argv) { "proxy", 'p', 0, G_OPTION_ARG_STRING, &o_proxy, "HTTP-proxy to use", NULL }, { "upgrade", 'u', 0, G_OPTION_ARG_NONE, &o_update, "Update all extensions", NULL }, { "update", 'U', 0, G_OPTION_ARG_STRING_ARRAY, &o_update_ext, "Update <extension>", "<extension>" }, - { NULL }, + { NULL, 0, 0, 0, NULL, NULL, NULL }, }; ctx = g_option_context_new(NULL); |