gplugin/gplugin

c5e39c391d9b
Parents 2c0c4aa117f6
Children 74033ca9b480
Use G_OPTION_ENTRY_NULL to fix a clang warning

Testing Done:
Compiled under clang, verified the warning was gone.

Reviewed at https://reviews.imfreedom.org/r/2786/
--- a/gplugin-introspection/gplugin-introspection.c Mon Nov 06 23:51:44 2023 -0600
+++ b/gplugin-introspection/gplugin-introspection.c Tue Nov 07 00:44:46 2023 -0600
@@ -39,8 +39,15 @@
GOptionContext *ctx = NULL;
char *irdump = NULL;
GOptionEntry entries[] = {
- {"introspect-dump", 'i', 0, G_OPTION_ARG_STRING, &irdump, NULL, NULL},
- {NULL}};
+ {
+ .long_name = "introspect-dump",
+ .short_name = 'i',
+ .flags = G_OPTION_FLAG_NONE,
+ .arg = G_OPTION_ARG_STRING,
+ .arg_data = &irdump,
+ },
+ G_OPTION_ENTRY_NULL,
+ };
ctx = g_option_context_new("");
g_option_context_set_summary(