Skip to content
  • Mike Fleetwood's avatar
    Fix warning from double assigning to gscreen · 1b85bf00
    Mike Fleetwood authored
    Compiling GParted on an older distribution with gtk+-3.0 < 3.22.0, where
    HAVE_GTK_SHOW_URI_ON_WINDOW is undefined, produces this warning message:
        Win_GParted.cc: In member function 'void GParted::Win_GParted::show_help(const Glib::ustring&, const Glib::ustring&)':
        Win_GParted.cc:1822:56: warning: operation on 'gscreen' may be undefined [-Wsequence-point]
          GdkScreen *gscreen = gscreen = gdk_screen_get_default();
                                                                ^
    
    Found on Ubuntu 16.04 LTS with gtk+ 3.18.0.
    
    Stop double assigning to gscreen.  Fixes commit:
        26f4dc50
        Replace deprecated gtk_show_uri() method for help window (!82)
    1b85bf00