Skip to content

Commit

Permalink
Silence glib warnings regarding GOptionFlags.
Browse files Browse the repository at this point in the history
These warnings:
GLib-WARNING **: goption.c:2168: ignoring no-arg, optional-arg or filename flags (8) on option of type 0
  • Loading branch information
Rogutės Sparnuotos authored and Cristian Henzel committed Mar 2, 2012
1 parent a48d357 commit 0076daf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils.c
Expand Up @@ -116,28 +116,28 @@ gboolean parse_options(int argc, char* argv[])
{
{
"daemon", 'd',
G_OPTION_FLAG_NO_ARG,
0,
G_OPTION_ARG_NONE,
&daemon, _("Run as daemon"),
NULL
},
{
"no-icon", 'n',
G_OPTION_FLAG_NO_ARG,
0,
G_OPTION_ARG_NONE,
&icon, _("Do not use status icon (Ctrl-Alt-P for menu)"),
NULL
},
{
"clipboard", 'c',
G_OPTION_FLAG_NO_ARG,
0,
G_OPTION_ARG_NONE,
&clipboard, _("Print clipboard contents"),
NULL
},
{
"primary", 'p',
G_OPTION_FLAG_NO_ARG,
0,
G_OPTION_ARG_NONE,
&primary, _("Print primary contents"),
NULL
Expand Down

0 comments on commit 0076daf

Please sign in to comment.