goption: Remove an unused assignment
authorPhilip Withnall <philip@tecnocode.co.uk>
Sat, 21 Jun 2014 11:28:54 +0000 (12:28 +0100)
committerPhilip Withnall <philip@tecnocode.co.uk>
Sun, 22 Jun 2014 11:57:57 +0000 (12:57 +0100)
Coverity issue: #1159514

https://bugzilla.gnome.org/show_bug.cgi?id=732005

glib/goption.c

index 2e45292..6438281 100644 (file)
@@ -1188,8 +1188,8 @@ parse_arg (GOptionContext *context,
     {
     case G_OPTION_ARG_NONE:
       {
-        change = get_change (context, G_OPTION_ARG_NONE,
-                             entry->arg_data);
+        (void) get_change (context, G_OPTION_ARG_NONE,
+                           entry->arg_data);
 
         *(gboolean *)entry->arg_data = !(entry->flags & G_OPTION_FLAG_REVERSE);
         break;