Error: COMPILER_WARNING (CWE-704): [#def1] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/background.vala: scope_hint: In function ‘background_loader_set_filename’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/background.vala:23:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type # 21| class BackgroundLoader : Object # 22| { # 23|-> public string filename { get; private set; } # 24| public Cairo.Surface logo { get; set; } # 25| Error: COMPILER_WARNING (CWE-477): [#def2] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/background.vala: scope_hint: In function ‘background_construct’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/background.vala:517:2: warning[-Wdeprecated-declarations]: ‘gtk_container_set_resize_mode’ is deprecated /usr/include/gtk-3.0/gtk/gtkbin.h:33: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkwindow.h:35: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkdialog.h:32: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtk.h:31: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkcontainer.h:156:9: note: declared here # 515| timer = null; # 516| # 517|-> resize_mode = Gtk.ResizeMode.QUEUE; # 518| loaders = new HashTable<string?, BackgroundLoader> (str_hash, str_equal); # 519| if (UGSettings.get_boolean (UGSettings.KEY_DRAW_GRID)) Error: GCC_ANALYZER_WARNING (CWE-476): [#def3] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/background.vala: scope_hint: In function ‘background_monitor_is_unique_size’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/background.vala:808:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/background.vala:605:3: note: in expansion of macro ‘g_debug’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/background.vala:740:2: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/background.vala:403:2: note: in expansion of macro ‘g_return_val_if_fail’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/background.vala: scope_hint: In function ‘background_monitor_is_unique_size’ /usr/include/glib-2.0/glib/gatomic.h:165:33: note: in definition of macro ‘g_atomic_int_inc’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/background.vala: scope_hint: In function ‘background_monitor_is_unique_size’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/background.vala:802:2: note: in expansion of macro ‘g_return_val_if_fail’ # 806| if (m == monitor) # 807| break; # 808|-> else if (m.width == monitor.width && m.height == monitor.height) # 809| return false; # 810| } Error: COMPILER_WARNING (CWE-704): [#def4] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/dash-entry.vala: scope_hint: In function ‘dash_entry_set_constant_placeholder_text’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/dash-entry.vala:29:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type # 27| public signal void respond (); # 28| # 29|-> public string constant_placeholder_text { get; set; } # 30| public bool can_respond { get; set; default = true; } # 31| Error: COMPILER_WARNING (CWE-477): [#def5] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/dash-entry.vala: scope_hint: In function ‘dash_entry_constructor’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/dash-entry.vala:74:2: warning[-Wdeprecated-declarations]: ‘gtk_widget_override_font’ is deprecated /usr/include/gtk-3.0/gtk/gtkapplication.h:27: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkwindow.h:33: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkdialog.h:32: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtk.h:31: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkx.h:27: included_from: Included from here. <command-line>: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkwidget.h:1153:14: note: declared here # 72| } # 73| # 74|-> override_font (Pango.FontDescription.from_string (font)); # 75| # 76| var style_ctx = get_style_context (); Error: GCC_ANALYZER_WARNING (CWE-476): [#def6] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/greeter-list.vala: scope_hint: In function ‘greeter_list_real_show_prompt_cb’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/greeter-list.vala:812:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘self’ /usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here. /usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here. /usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here. /usr/include/glib-2.0/glib.h:32: included_from: Included from here. /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/greeter-list.vala:806:2: note: in expansion of macro ‘g_return_if_fail’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/greeter-list.vala:146:2: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/greeter-list.vala:146:2: note: in expansion of macro ‘g_return_val_if_fail’ # 810| { # 811| if (SlickGreeter.singleton.test_mode) # 812|-> manual_name = test_username; # 813| else # 814| manual_name = SlickGreeter.singleton.authentication_user(); Error: GCC_ANALYZER_WARNING (CWE-476): [#def7] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/greeter-list.vala:817:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘self’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/greeter-list.vala:806:2: note: in expansion of macro ‘g_return_if_fail’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/greeter-list.vala:146:2: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/greeter-list.vala:146:2: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/greeter-list.vala:147:2: note: in expansion of macro ‘g_return_if_fail’ /usr/include/glib-2.0/glib.h:64: included_from: Included from here. slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/greeter-list.vala:147:2: note: in expansion of macro ‘g_return_if_fail’ # 815| } # 816| # 817|-> prompted = true; # 818| if (text == "Password: ") # 819| text = _("Password:"); Error: GCC_ANALYZER_WARNING (CWE-476): [#def8] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/idle-monitor.vala: scope_hint: In function ‘idle_monitor_remove_watch’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/idle-monitor.vala:50:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ /usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here. /usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here. /usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here. /usr/include/glib-2.0/glib.h:32: included_from: Included from here. /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/idle-monitor.vala:46:2: note: in expansion of macro ‘g_return_if_fail’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/idle-monitor.vala: scope_hint: In function ‘idle_monitor_remove_watch’ # 48| var watch = watches.lookup (id); # 49| watches.remove (id); # 50|-> if (watch.xalarm != user_active_alarm) # 51| X.Sync.DestroyAlarm (display, watch.xalarm); # 52| } Error: COMPILER_WARNING (CWE-477): [#def9] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/list-stack.vala: scope_hint: In function ‘list_stack_constructor’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/list-stack.vala:36:2: warning[-Wdeprecated-declarations]: ‘gtk_container_set_resize_mode’ is deprecated /usr/include/gtk-3.0/gtk/gtkbin.h:33: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkwindow.h:35: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkdialog.h:32: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtk.h:31: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkx.h:27: included_from: Included from here. <command-line>: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkcontainer.h:156:9: note: declared here # 34| { # 35| // Hack to avoid gtk 3.20's new allocate logic, which messes us up. # 36|-> resize_mode = Gtk.ResizeMode.QUEUE; # 37| # 38| width = grid_size * GreeterList.BOX_WIDTH; Error: GCC_ANALYZER_WARNING (CWE-476): [#def10] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/list-stack.vala: scope_hint: In function ‘list_stack_push’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/list-stack.vala:65:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ /usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here. /usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here. /usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here. /usr/include/glib-2.0/glib.h:32: included_from: Included from here. /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/list-stack.vala:50:2: note: in expansion of macro ‘g_return_if_fail’ /usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here. /usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here. /usr/include/glib-2.0/glib-object.h:24: included_from: Included from here. /usr/include/glib-2.0/gio/gioenums.h:30: included_from: Included from here. /usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here. /usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here. /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28: included_from: Included from here. /usr/include/gtk-3.0/gdk/gdk.h:32: included_from: Included from here. /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/list-stack.c:83:31: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/list-stack.vala:62:28: note: in expansion of macro ‘IS_GREETER_LIST’ # 63| /* Clear any errors so when we come back, they will be gone. */ # 64| current.selected_entry.reset_state (); # 65|-> current.greeter_box.push (pushed); # 66| } # 67| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def11] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/list-stack.vala: scope_hint: In function ‘list_stack_pop’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/list-stack.vala:77:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/list-stack.vala:69:2: note: in expansion of macro ‘g_return_if_fail’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/list-stack.vala:73:2: note: in expansion of macro ‘g_return_if_fail’ /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/list-stack.c:83:31: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/list-stack.vala:77:13: note: in expansion of macro ‘IS_GREETER_LIST’ # 75| unowned List<weak Gtk.Widget> prev = children.last ().prev; # 76| if (prev != null) # 77|-> (prev.data as GreeterList).greeter_box.pop (); # 78| } # 79| Error: COMPILER_WARNING (CWE-477): [#def12] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/main-window.vala: scope_hint: In function ‘main_window_constructor’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/main-window.vala:52:2: warning[-Wdeprecated-declarations]: ‘gtk_widget_override_background_color’ is deprecated /usr/include/gtk-3.0/gtk/gtkwidget.h:1148:14: note: declared here # 50| var bg_color = Gdk.RGBA (); # 51| bg_color.parse (UGSettings.get_string (UGSettings.KEY_BACKGROUND_COLOR)); # 52|-> override_background_color (Gtk.StateFlags.NORMAL, bg_color); # 53| get_accessible ().set_name (_("Login Screen")); # 54| has_resize_grip = false; Error: COMPILER_WARNING (CWE-477): [#def13] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/main-window.vala:54:2: warning[-Wdeprecated-declarations]: ‘gtk_window_set_has_resize_grip’ is deprecated /usr/include/gtk-3.0/gtk/gtkwindow.h:478:10: note: declared here # 52| override_background_color (Gtk.StateFlags.NORMAL, bg_color); # 53| get_accessible ().set_name (_("Login Screen")); # 54|-> has_resize_grip = false; # 55| SlickGreeter.add_style_class (this); # 56| Error: COMPILER_WARNING (CWE-477): [#def14] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/main-window.vala:67:2: warning[-Wdeprecated-declarations]: ‘gtk_alignment_new’ is deprecated /usr/include/gtk-3.0/gtk/gtk.h:255: included_from: Included from here. /usr/include/gtk-3.0/gtk/deprecated/gtkalignment.h:79:12: note: declared here # 65| /* Box for menubar shadow */ # 66| var menubox = new Gtk.EventBox (); # 67|-> var menualign = new Gtk.Alignment (0.0f, 0.0f, 1.0f, 0.0f); # 68| var shadow_path = Path.build_filename (Config.PKGDATADIR, # 69| "shadow.png", null); Error: COMPILER_WARNING (CWE-477): [#def15] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/main-window.vala:117:2: warning[-Wdeprecated-declarations]: ‘gtk_alignment_new’ is deprecated /usr/include/gtk-3.0/gtk/deprecated/gtkalignment.h:79:12: note: declared here # 115| } # 116| # 117|-> var align = new Gtk.Alignment (x_align, 0.0f, 0.0f, 1.0f); # 118| # 119| if (content_align == "center") Error: COMPILER_WARNING (CWE-477): [#def16] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/main-window.vala:122:3: warning[-Wdeprecated-declarations]: ‘gtk_widget_set_margin_right’ is deprecated: Use 'gtk_widget_set_margin_end' instead /usr/include/gtk-3.0/gtk/gtkwidget.h:1091:10: note: declared here # 120| { # 121| // offset for back button # 122|-> align.margin_right = grid_size; # 123| } # 124| Error: COMPILER_WARNING (CWE-477): [#def17] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/main-window.vala:133:2: warning[-Wdeprecated-declarations]: ‘gtk_alignment_new’ is deprecated /usr/include/gtk-3.0/gtk/deprecated/gtkalignment.h:79:12: note: declared here # 131| align.add (hbox); # 132| # 133|-> align = new Gtk.Alignment (0.5f, 0.5f, 0.0f, 0.0f); # 134| // Hack to avoid gtk 3.20's new allocate logic, which messes us up. # 135| align.resize_mode = Gtk.ResizeMode.QUEUE; Error: COMPILER_WARNING (CWE-477): [#def18] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/main-window.vala:135:2: warning[-Wdeprecated-declarations]: ‘gtk_container_set_resize_mode’ is deprecated /usr/include/gtk-3.0/gtk/gtkbin.h:33: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkwindow.h:35: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkcontainer.h:156:9: note: declared here # 133| align = new Gtk.Alignment (0.5f, 0.5f, 0.0f, 0.0f); # 134| // Hack to avoid gtk 3.20's new allocate logic, which messes us up. # 135|-> align.resize_mode = Gtk.ResizeMode.QUEUE; # 136| align.set_size_request (grid_size, -1); # 137| align.margin_bottom = MENUBAR_HEIGHT; /* offset for menubar at top */ Error: COMPILER_WARNING (CWE-477): [#def19] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/main-window.vala:143:2: warning[-Wdeprecated-declarations]: ‘gtk_button_set_focus_on_click’ is deprecated: Use 'gtk_widget_set_focus_on_click' instead /usr/include/gtk-3.0/gtk/gtk.h:54: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkbutton.h:138:23: note: declared here # 141| back_button = new FlatButton (); # 142| back_button.get_accessible ().set_name (_("Back")); # 143|-> Gtk.button_set_focus_on_click (back_button, false); # 144| var image = new Gtk.Image.from_file (Path.build_filename (Config.PKGDATADIR, "arrow_left.png", null)); # 145| image.show (); Error: COMPILER_WARNING (CWE-477): [#def20] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/main-window.vala:151:2: warning[-Wdeprecated-declarations]: ‘gtk_alignment_new’ is deprecated /usr/include/gtk-3.0/gtk/deprecated/gtkalignment.h:79:12: note: declared here # 149| align.add (back_button); # 150| # 151|-> align = new Gtk.Alignment (0.0f, 0.5f, 0.0f, 1.0f); # 152| align.show (); # 153| hbox.add (align); Error: COMPILER_WARNING (CWE-477): [#def21] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/main-window.vala: scope_hint: In function ‘main_window_real_size_allocate’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/main-window.vala:219:3: warning[-Wdeprecated-declarations]: ‘gtk_widget_set_margin_left’ is deprecated: Use 'gtk_widget_set_margin_start' instead /usr/include/gtk-3.0/gtk/gtkapplication.h:27: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkwindow.h:33: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkdialog.h:32: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtk.h:31: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkx.h:27: included_from: Included from here. <command-line>: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkwidget.h:1086:10: note: declared here # 217| { # 218| var content_align = UGSettings.get_string(UGSettings.KEY_CONTENT_ALIGN); # 219|-> content_box.margin_left = get_grid_offset (get_allocated_width ()) + (content_align == "left" ? grid_size : 0); # 220| content_box.margin_right = get_grid_offset (get_allocated_width ()) + (content_align == "right" ? grid_size : 0); # 221| content_box.margin_top = get_grid_offset (get_allocated_height ()); Error: COMPILER_WARNING (CWE-477): [#def22] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/main-window.vala:220:3: warning[-Wdeprecated-declarations]: ‘gtk_widget_set_margin_right’ is deprecated: Use 'gtk_widget_set_margin_end' instead /usr/include/gtk-3.0/gtk/gtkwidget.h:1091:10: note: declared here # 218| var content_align = UGSettings.get_string(UGSettings.KEY_CONTENT_ALIGN); # 219| content_box.margin_left = get_grid_offset (get_allocated_width ()) + (content_align == "left" ? grid_size : 0); # 220|-> content_box.margin_right = get_grid_offset (get_allocated_width ()) + (content_align == "right" ? grid_size : 0); # 221| content_box.margin_top = get_grid_offset (get_allocated_height ()); # 222| content_box.margin_bottom = get_grid_offset (get_allocated_height ()); Error: COMPILER_WARNING (CWE-477): [#def23] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/main-window.vala: scope_hint: In function ‘main_window_real_realize’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/main-window.vala:229:2: warning[-Wdeprecated-declarations]: ‘gdk_cairo_create’ is deprecated: Use 'gdk_window_begin_draw_frame() and gdk_drawing_context_get_cairo_context()' instead /usr/include/gtk-3.0/gdk/gdk.h:33: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtk.h:30: included_from: Included from here. /usr/include/gtk-3.0/gdk/gdkcairo.h:35:12: note: declared here # 227| { # 228| base.realize (); # 229|-> background.set_surface (Gdk.cairo_create (get_window ()).get_target ()); # 230| } # 231| Error: GCC_ANALYZER_WARNING (CWE-476): [#def24] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/main-window.vala: scope_hint: In function ‘main_window_real_motion_notify_event.part.0’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/main-window.vala:332:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/main-window.vala: scope_hint: In function ‘main_window_real_motion_notify_event.part.0’ # 330| foreach (var m in monitors) # 331| { # 332|-> if (x >= m.x && x <= m.x + m.width && y >= m.y && y <= m.y + m.height) # 333| { # 334| move_to_monitor (m); Error: COMPILER_WARNING (CWE-843): [#def25] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/menubar.vala: scope_hint: In function ‘menu_bar_constructor’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/menubar.vala:147:48: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_menu_shell_append’ from incompatible pointer type /usr/include/gtk-3.0/gtk/gtkmenushell.h:92:55: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkMenuItem *’ {aka ‘struct _GtkMenuItem *’} # 145| { # 146| var session_menu = make_session_item (); # 147|-> append (session_menu); # 148| } # 149| Error: COMPILER_WARNING (CWE-477): [#def26] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/menubar.vala:154:3: warning[-Wdeprecated-declarations]: ‘gtk_widget_override_color’ is deprecated /usr/include/gtk-3.0/gtk/gtkwidget.h:1144:14: note: declared here # 152| clock_label = new Gtk.Label (""); # 153| var clock_fg = clock_label.get_style_context ().get_color (Gtk.StateFlags.NORMAL); # 154|-> clock_label.override_color (Gtk.StateFlags.INSENSITIVE, clock_fg); # 155| clock_label.show (); # 156| var item = new Gtk.MenuItem (); Error: COMPILER_WARNING (CWE-843): [#def27] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/menubar.vala:160:48: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_menu_shell_append’ from incompatible pointer type /usr/include/gtk-3.0/gtk/gtkmenushell.h:92:55: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkMenuItem *’ {aka ‘struct _GtkMenuItem *’} # 158| item.sensitive = false; # 159| item.show (); # 160|-> append (item); # 161| clock_format = UGSettings.get_string (UGSettings.KEY_CLOCK_FORMAT); # 162| update_clock (); Error: COMPILER_WARNING (CWE-477): [#def28] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/menubar.vala:178:3: warning[-Wdeprecated-declarations]: ‘gtk_widget_override_color’ is deprecated /usr/include/gtk-3.0/gtk/gtkwidget.h:1144:14: note: declared here # 176| power_label.sensitive = false; # 177| var power_fg = power_label.get_style_context ().get_color (Gtk.StateFlags.NORMAL); # 178|-> power_label.override_color (Gtk.StateFlags.INSENSITIVE, power_fg); # 179| power_label.show (); # 180| hbox.add (power_label); Error: COMPILER_WARNING (CWE-843): [#def29] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/menubar.vala:183:48: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_menu_shell_append’ from incompatible pointer type /usr/include/gtk-3.0/gtk/gtkmenushell.h:92:55: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkMenuItem *’ {aka ‘struct _GtkMenuItem *’} # 181| power_menu_item.add (hbox); # 182| power_menu_item.hide (); # 183|-> append (power_menu_item); # 184| # 185| try Error: COMPILER_WARNING (CWE-843): [#def30] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/menubar.vala:205:48: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_menu_shell_append’ from incompatible pointer type /usr/include/gtk-3.0/gtk/gtkmenushell.h:92:55: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkMenuItem *’ {aka ‘struct _GtkMenuItem *’} # 203| { # 204| var keyboard_menu = make_keyboard_item (); # 205|-> append (keyboard_menu); # 206| } # 207| Error: COMPILER_WARNING (CWE-843): [#def31] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/menubar.vala:211:48: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_menu_shell_append’ from incompatible pointer type /usr/include/gtk-3.0/gtk/gtkmenushell.h:92:55: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkMenuItem *’ {aka ‘struct _GtkMenuItem *’} # 209| { # 210| var a11y_item = make_a11y_item (); # 211|-> append (a11y_item); # 212| } # 213| Error: COMPILER_WARNING (CWE-477): [#def32] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/menubar.vala:218:3: warning[-Wdeprecated-declarations]: ‘gtk_widget_override_color’ is deprecated /usr/include/gtk-3.0/gtk/gtkwidget.h:1144:14: note: declared here # 216| var label = new Gtk.Label (Posix.utsname ().nodename); # 217| var hostname_fg = label.get_style_context ().get_color (Gtk.StateFlags.NORMAL); # 218|-> label.override_color (Gtk.StateFlags.INSENSITIVE, hostname_fg); # 219| label.show (); # 220| var hostname_item = new Gtk.MenuItem (); Error: COMPILER_WARNING (CWE-477): [#def33] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/menubar.vala:223:3: warning[-Wdeprecated-declarations]: ‘gtk_menu_item_set_right_justified’ is deprecated /usr/include/gtk-3.0/gtk/gtkmenuitem.h:137:12: note: declared here # 221| hostname_item.add (label); # 222| hostname_item.sensitive = false; # 223|-> hostname_item.right_justified = true; # 224| hostname_item.show (); # 225| append (hostname_item); Error: COMPILER_WARNING (CWE-843): [#def34] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/menubar.vala:225:48: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_menu_shell_append’ from incompatible pointer type /usr/include/gtk-3.0/gtk/gtkmenushell.h:92:55: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkMenuItem *’ {aka ‘struct _GtkMenuItem *’} # 223| hostname_item.right_justified = true; # 224| hostname_item.show (); # 225|-> append (hostname_item); # 226| } # 227| Error: COMPILER_WARNING (CWE-843): [#def35] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/menubar.vala: scope_hint: In function ‘menu_bar_make_a11y_item’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/menubar.vala:382:40: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_menu_item_set_submenu’ from incompatible pointer type /usr/include/gtk-3.0/gtk/gtkcheckmenuitem.h:33: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtk.h:72: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkmenuitem.h:121:69: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkMenu *’ {aka ‘struct _GtkMenu *’} # 380| hbox.add (image); # 381| a11y_item.show (); # 382|-> a11y_item.set_submenu (new Gtk.Menu ()); # 383| onscreen_keyboard_item = new Gtk.CheckMenuItem.with_label (_("Onscreen keyboard")); # 384| onscreen_keyboard_item.toggled.connect (keyboard_toggled_cb); Error: COMPILER_WARNING (CWE-843): [#def36] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/menubar.vala:386:10: warning[-Wincompatible-pointer-types]: assignment to ‘GtkMenu *’ {aka ‘struct _GtkMenu *’} from incompatible pointer type ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} # 384| onscreen_keyboard_item.toggled.connect (keyboard_toggled_cb); # 385| onscreen_keyboard_item.show (); # 386|-> unowned Gtk.Menu submenu = a11y_item.submenu; # 387| submenu.append (onscreen_keyboard_item); # 388| high_contrast_item = new Gtk.CheckMenuItem.with_label (_("High Contrast")); Error: COMPILER_WARNING (CWE-843): [#def37] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/menubar.vala:387:50: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_menu_shell_append’ from incompatible pointer type /usr/include/gtk-3.0/gtk/gtkmenu.h:33: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtklabel.h:34: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkaccellabel.h:35: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtk.h:33: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkmenushell.h:92:55: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkMenuItem *’ {aka ‘struct _GtkMenuItem *’} # 385| onscreen_keyboard_item.show (); # 386| unowned Gtk.Menu submenu = a11y_item.submenu; # 387|-> submenu.append (onscreen_keyboard_item); # 388| high_contrast_item = new Gtk.CheckMenuItem.with_label (_("High Contrast")); # 389| high_contrast_item.toggled.connect (high_contrast_toggled_cb); Error: COMPILER_WARNING (CWE-843): [#def38] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/menubar.vala:392:50: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_menu_shell_append’ from incompatible pointer type /usr/include/gtk-3.0/gtk/gtkmenushell.h:92:55: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkMenuItem *’ {aka ‘struct _GtkMenuItem *’} # 390| high_contrast_item.add_accelerator ("activate", accel_group, Gdk.Key.h, Gdk.ModifierType.CONTROL_MASK, Gtk.AccelFlags.VISIBLE); # 391| high_contrast_item.show (); # 392|-> submenu.append (high_contrast_item); # 393| high_contrast_item.set_active (UGSettings.get_boolean (UGSettings.KEY_HIGH_CONTRAST)); # 394| var item = new Gtk.CheckMenuItem.with_label (_("Screen Reader")); Error: COMPILER_WARNING (CWE-843): [#def39] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/menubar.vala:398:50: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_menu_shell_append’ from incompatible pointer type /usr/include/gtk-3.0/gtk/gtkmenushell.h:92:55: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkMenuItem *’ {aka ‘struct _GtkMenuItem *’} # 396| item.add_accelerator ("activate", accel_group, Gdk.Key.s, Gdk.ModifierType.SUPER_MASK | Gdk.ModifierType.MOD1_MASK, Gtk.AccelFlags.VISIBLE); # 397| item.show (); # 398|-> submenu.append (item); # 399| item.set_active (UGSettings.get_boolean (UGSettings.KEY_SCREEN_READER)); # 400| return a11y_item; Error: COMPILER_WARNING (CWE-843): [#def40] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/menubar.vala: scope_hint: In function ‘menu_bar_make_session_item’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/menubar.vala:414:38: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_menu_item_set_submenu’ from incompatible pointer type /usr/include/gtk-3.0/gtk/gtkmenuitem.h:121:69: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkMenu *’ {aka ‘struct _GtkMenu *’} # 412| hbox.add (image); # 413| item.show (); # 414|-> item.set_submenu (new Gtk.Menu ()); # 415| unowned Gtk.Menu submenu = item.submenu; # 416| Error: COMPILER_WARNING (CWE-843): [#def41] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/menubar.vala:415:10: warning[-Wincompatible-pointer-types]: assignment to ‘GtkMenu *’ {aka ‘struct _GtkMenu *’} from incompatible pointer type ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} # 413| item.show (); # 414| item.set_submenu (new Gtk.Menu ()); # 415|-> unowned Gtk.Menu submenu = item.submenu; # 416| # 417| if (LightDM.get_can_suspend ()) Error: COMPILER_WARNING (CWE-843): [#def42] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/menubar.vala:421:51: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_menu_shell_append’ from incompatible pointer type /usr/include/gtk-3.0/gtk/gtkmenushell.h:92:55: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkMenuItem *’ {aka ‘struct _GtkMenuItem *’} # 419| Gtk.MenuItem menu_item = new Gtk.MenuItem.with_label (_("Suspend")); # 420| menu_item.show (); # 421|-> submenu.append (menu_item); # 422| menu_item.activate.connect (() => # 423| { Error: COMPILER_WARNING (CWE-843): [#def43] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/menubar.vala:439:51: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_menu_shell_append’ from incompatible pointer type /usr/include/gtk-3.0/gtk/gtkmenushell.h:92:55: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkMenuItem *’ {aka ‘struct _GtkMenuItem *’} # 437| Gtk.MenuItem menu_item = new Gtk.MenuItem.with_label (_("Hibernate")); # 438| menu_item.show (); # 439|-> submenu.append (menu_item); # 440| menu_item.activate.connect (() => # 441| { Error: COMPILER_WARNING (CWE-843): [#def44] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/menubar.vala:456:50: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_menu_shell_append’ from incompatible pointer type /usr/include/gtk-3.0/gtk/gtkmenushell.h:92:55: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkMenuItem *’ {aka ‘struct _GtkMenuItem *’} # 454| menu_item.activate.connect (shutdown_cb); # 455| menu_item.show (); # 456|-> submenu.append (menu_item); # 457| # 458| return item; Error: COMPILER_WARNING (CWE-477): [#def45] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/menubar.vala: scope_hint: In function ‘menu_bar_make_keyboard_item’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/menubar.vala:479:2: warning[-Wdeprecated-declarations]: ‘gtk_widget_override_color’ is deprecated /usr/include/gtk-3.0/gtk/gtkapplication.h:27: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkwindow.h:33: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkdialog.h:32: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtk.h:31: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkwidget.h:1144:14: note: declared here # 477| } # 478| var keyboard_fg = label.get_style_context ().get_color (Gtk.StateFlags.NORMAL); # 479|-> label.override_color (Gtk.StateFlags.INSENSITIVE, keyboard_fg); # 480| label.show (); # 481| hbox.add (label); Error: COMPILER_WARNING (CWE-843): [#def46] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/menubar.vala:523:55: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_menu_shell_append’ from incompatible pointer type /usr/include/gtk-3.0/gtk/gtkmenushell.h:92:55: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkMenuItem *’ {aka ‘struct _GtkMenuItem *’} # 521| }); # 522| if (layout.name == current_layout.name || default_layouts.find_custom (layout.name, strcmp) != null) { # 523|-> system_menu.append (menu_item); # 524| } # 525| else { Error: COMPILER_WARNING (CWE-843): [#def47] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/menubar.vala:526:55: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_menu_shell_append’ from incompatible pointer type /usr/include/gtk-3.0/gtk/gtkmenushell.h:92:55: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkMenuItem *’ {aka ‘struct _GtkMenuItem *’} # 524| } # 525| else { # 526|-> all_menu.append (menu_item); # 527| } # 528| menu_item.show (); Error: COMPILER_WARNING (CWE-843): [#def48] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/menubar.vala:531:39: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_menu_item_set_submenu’ from incompatible pointer type /usr/include/gtk-3.0/gtk/gtkmenuitem.h:121:69: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkMenu *’ {aka ‘struct _GtkMenu *’} # 529| } # 530| # 531|-> item.set_submenu (system_menu); # 532| Gtk.MenuItem menu_item = new Gtk.MenuItem.with_label (_("More layouts...")); # 533| system_menu.append (menu_item); Error: COMPILER_WARNING (CWE-843): [#def49] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/menubar.vala:533:51: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_menu_shell_append’ from incompatible pointer type /usr/include/gtk-3.0/gtk/gtkmenushell.h:92:55: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkMenuItem *’ {aka ‘struct _GtkMenuItem *’} # 531| item.set_submenu (system_menu); # 532| Gtk.MenuItem menu_item = new Gtk.MenuItem.with_label (_("More layouts...")); # 533|-> system_menu.append (menu_item); # 534| menu_item.set_submenu (all_menu); # 535| menu_item.show (); Error: COMPILER_WARNING (CWE-843): [#def50] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/menubar.vala:534:40: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_menu_item_set_submenu’ from incompatible pointer type /usr/include/gtk-3.0/gtk/gtkmenuitem.h:121:69: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkMenu *’ {aka ‘struct _GtkMenu *’} # 532| Gtk.MenuItem menu_item = new Gtk.MenuItem.with_label (_("More layouts...")); # 533| system_menu.append (menu_item); # 534|-> menu_item.set_submenu (all_menu); # 535| menu_item.show (); # 536| Error: COMPILER_WARNING (CWE-704): [#def51] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/prompt-box.vala: scope_hint: In function ‘prompt_box_set_id’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/prompt-box.vala:29:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type # 27| # 28| public bool has_errors { get; set; default = false; } # 29|-> public string id { get; construct; } # 30| # 31| public string label Error: COMPILER_WARNING (CWE-477): [#def52] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/prompt-box.vala: scope_hint: In function ‘prompt_box_constructor’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/prompt-box.vala:93:2: warning[-Wdeprecated-declarations]: ‘gtk_container_set_resize_mode’ is deprecated /usr/include/gtk-3.0/gtk/gtkbin.h:33: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkwindow.h:35: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkcontainer.h:156:9: note: declared here # 91| { # 92| // Hack to avoid gtk 3.20's new allocate logic, which messes us up. # 93|-> resize_mode = Gtk.ResizeMode.QUEUE; # 94| # 95| set_start_row (); Error: COMPILER_WARNING (CWE-477): [#def53] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/prompt-box.vala: scope_hint: In function ‘prompt_box_real_create_name_grid’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/prompt-box.vala:178:2: warning[-Wdeprecated-declarations]: ‘gtk_widget_override_font’ is deprecated /usr/include/gtk-3.0/gtk/gtkapplication.h:27: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkwindow.h:33: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkdialog.h:32: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtk.h:31: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkwidget.h:1153:14: note: declared here # 176| # 177| name_label = new FadingLabel (""); # 178|-> name_label.override_font (Pango.FontDescription.from_string ("Ubuntu 13")); # 179| name_label.override_color (Gtk.StateFlags.NORMAL, { 1.0f, 1.0f, 1.0f, 1.0f }); # 180| name_label.valign = Gtk.Align.START; Error: COMPILER_WARNING (CWE-477): [#def54] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/prompt-box.vala:179:2: warning[-Wdeprecated-declarations]: ‘gtk_widget_override_color’ is deprecated /usr/include/gtk-3.0/gtk/gtkwidget.h:1144:14: note: declared here # 177| name_label = new FadingLabel (""); # 178| name_label.override_font (Pango.FontDescription.from_string ("Ubuntu 13")); # 179|-> name_label.override_color (Gtk.StateFlags.NORMAL, { 1.0f, 1.0f, 1.0f, 1.0f }); # 180| name_label.valign = Gtk.Align.START; # 181| name_label.vexpand = true; Error: COMPILER_WARNING (CWE-477): [#def55] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/prompt-box.vala:184:2: warning[-Wdeprecated-declarations]: ‘gtk_widget_set_margin_left’ is deprecated: Use 'gtk_widget_set_margin_start' instead /usr/include/gtk-3.0/gtk/gtkwidget.h:1086:10: note: declared here # 182| name_label.yalign = 0.5f; # 183| name_label.xalign = 0.0f; # 184|-> name_label.margin_left = 2; # 185| name_label.set_size_request (-1, grid_size); # 186| name_label.show (); Error: COMPILER_WARNING (CWE-477): [#def56] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/prompt-box.vala:192:2: warning[-Wdeprecated-declarations]: ‘gtk_alignment_new’ is deprecated /usr/include/gtk-3.0/gtk/gtk.h:255: included_from: Included from here. /usr/include/gtk-3.0/gtk/deprecated/gtkalignment.h:79:12: note: declared here # 190| message_image.set_from_icon_name("mail-unread", Gtk.IconSize.BUTTON); # 191| # 192|-> var align = new Gtk.Alignment (0.5f, 0.5f, 0.0f, 0.0f); # 193| align.valign = Gtk.Align.START; # 194| align.set_size_request (-1, grid_size); Error: COMPILER_WARNING (CWE-477): [#def57] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/prompt-box.vala:206:2: warning[-Wdeprecated-declarations]: ‘gtk_button_set_focus_on_click’ is deprecated: Use 'gtk_widget_set_focus_on_click' instead /usr/include/gtk-3.0/gtk/gtk.h:54: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkbutton.h:138:23: note: declared here # 204| // Keep as much space on top as on the right # 205| option_button.margin_top = ActiveIndicator.WIDTH + box_grid.column_spacing; # 206|-> Gtk.button_set_focus_on_click (option_button, false); # 207| option_button.relief = Gtk.ReliefStyle.NONE; # 208| option_button.get_accessible ().set_name (_("Session Options")); Error: COMPILER_WARNING (CWE-477): [#def58] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/prompt-box.vala: scope_hint: In function ‘prompt_box_real_create_small_name_grid’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/prompt-box.vala:227:2: warning[-Wdeprecated-declarations]: ‘gtk_widget_override_font’ is deprecated /usr/include/gtk-3.0/gtk/gtkwidget.h:1153:14: note: declared here # 225| # 226| small_name_label = new FadingLabel (""); # 227|-> small_name_label.override_font (Pango.FontDescription.from_string ("Ubuntu 13")); # 228| small_name_label.override_color (Gtk.StateFlags.NORMAL, { 1.0f, 1.0f, 1.0f, 1.0f }); # 229| small_name_label.yalign = 0.5f; Error: COMPILER_WARNING (CWE-477): [#def59] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/prompt-box.vala:228:2: warning[-Wdeprecated-declarations]: ‘gtk_widget_override_color’ is deprecated /usr/include/gtk-3.0/gtk/gtkwidget.h:1144:14: note: declared here # 226| small_name_label = new FadingLabel (""); # 227| small_name_label.override_font (Pango.FontDescription.from_string ("Ubuntu 13")); # 228|-> small_name_label.override_color (Gtk.StateFlags.NORMAL, { 1.0f, 1.0f, 1.0f, 1.0f }); # 229| small_name_label.yalign = 0.5f; # 230| small_name_label.xalign = 0.0f; Error: COMPILER_WARNING (CWE-477): [#def60] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/prompt-box.vala:231:2: warning[-Wdeprecated-declarations]: ‘gtk_widget_set_margin_left’ is deprecated: Use 'gtk_widget_set_margin_start' instead /usr/include/gtk-3.0/gtk/gtkwidget.h:1086:10: note: declared here # 229| small_name_label.yalign = 0.5f; # 230| small_name_label.xalign = 0.0f; # 231|-> small_name_label.margin_left = 2; # 232| small_name_label.set_size_request (-1, grid_size); # 233| small_name_label.show (); Error: COMPILER_WARNING (CWE-477): [#def61] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/prompt-box.vala:239:2: warning[-Wdeprecated-declarations]: ‘gtk_alignment_new’ is deprecated /usr/include/gtk-3.0/gtk/deprecated/gtkalignment.h:79:12: note: declared here # 237| small_message_image.set_from_icon_name("mail-unread", Gtk.IconSize.BUTTON); # 238| # 239|-> var align = new Gtk.Alignment (0.5f, 0.5f, 0.0f, 0.0f); # 240| align.set_size_request (-1, grid_size); # 241| align.add (small_message_image); Error: COMPILER_WARNING (CWE-843): [#def62] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/prompt-box.vala: scope_hint: In function ‘__lambda25_’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/prompt-box.vala:352:9: warning[-Wincompatible-pointer-types]: assignment to ‘GtkContainer *’ {aka ‘struct _GtkContainer *’} from incompatible pointer type ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} # 350| #if HAVE_GTK_3_20_0 # 351| w.ref (); # 352|-> w.get_parent().remove(w); # 353| w.unref (); # 354| #else Error: COMPILER_WARNING (CWE-477): [#def63] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/prompt-box.vala: scope_hint: In function ‘prompt_box_add_message’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/prompt-box.vala:453:2: warning[-Wdeprecated-declarations]: ‘gtk_widget_override_font’ is deprecated /usr/include/gtk-3.0/gtk/gtkwidget.h:1153:14: note: declared here # 451| var label = new FadingLabel (text); # 452| # 453|-> label.override_font (Pango.FontDescription.from_string ("Ubuntu Bold 10")); # 454| # 455| Gdk.RGBA color = { 1.0f, 1.0f, 1.0f, 1.0f }; Error: COMPILER_WARNING (CWE-477): [#def64] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/prompt-box.vala:458:2: warning[-Wdeprecated-declarations]: ‘gtk_widget_override_color’ is deprecated /usr/include/gtk-3.0/gtk/gtkwidget.h:1144:14: note: declared here # 456| if (is_error) # 457| color.parse ("#ffd64d"); # 458|-> label.override_color (Gtk.StateFlags.NORMAL, color); # 459| # 460| label.xalign = 0.0f; Error: COMPILER_WARNING (CWE-477): [#def65] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/prompt-box.vala: scope_hint: In function ‘prompt_box_add_combo’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/prompt-box.vala:571:2: warning[-Wdeprecated-declarations]: ‘gtk_widget_override_font’ is deprecated /usr/include/gtk-3.0/gtk/gtkwidget.h:1153:14: note: declared here # 569| combo.get_style_context ().add_class ("lightdm-combo"); # 570| combo.get_child ().get_style_context ().add_class ("lightdm-combo"); # 571|-> combo.get_child ().override_font (Pango.FontDescription.from_string (DashEntry.font)); # 572| # 573| attach_item (combo, false); Error: COMPILER_WARNING (CWE-843): [#def66] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/prompt-box.vala:575:30: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘g_ptr_array_foreach’ from incompatible pointer type /usr/include/glib-2.0/glib.h:33: included_from: Included from here. /usr/include/glib-2.0/glib/garray.h:254:62: note: expected ‘GFunc’ {aka ‘void (*)(void *, void *)’} but argument is of type ‘void (*)(const void *, void *)’ # 573| attach_item (combo, false); # 574| # 575|-> texts.foreach ((text) => { combo.append_text (text); }); # 576| # 577| if (texts.length > 0) Error: COMPILER_WARNING (CWE-704): [#def67] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/session-list.vala: scope_hint: In function ‘session_prompt_set_session’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/session-list.vala:22:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type # 20| public class SessionPrompt : PromptBox # 21| { # 22|-> public string session { get; construct; } # 23| public string default_session { get; construct; } # 24| Error: COMPILER_WARNING (CWE-704): [#def68] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/session-list.vala: scope_hint: In function ‘session_prompt_set_default_session’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/session-list.vala:23:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type # 21| { # 22| public string session { get; construct; } # 23|-> public string default_session { get; construct; } # 24| # 25| public SessionPrompt (string id, string? session, string? default_session) Error: COMPILER_WARNING (CWE-704): [#def69] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/session-list.vala: scope_hint: In function ‘session_list_set_session’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/session-list.vala:72:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type # 70| { # 71| public signal void session_clicked (string session); # 72|-> public string session { get; construct; } # 73| public string default_session { get; construct; } # 74| Error: COMPILER_WARNING (CWE-704): [#def70] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/session-list.vala: scope_hint: In function ‘session_list_set_default_session’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/session-list.vala:73:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type # 71| public signal void session_clicked (string session); # 72| public string session { get; construct; } # 73|-> public string default_session { get; construct; } # 74| # 75| private SessionPrompt prompt; Error: GCC_ANALYZER_WARNING (CWE-476): [#def71] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/session-list.vala: scope_hint: In function ‘session_list_constructor’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/session-list.vala:86:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*parent_class.constructor(type, n_construct_properties, construct_properties)’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/session-list.c:143:33: note: in definition of macro ‘_g_object_unref0’ /usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here. /usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here. /usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here. /usr/include/glib-2.0/glib.h:32: included_from: Included from here. /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/session-list.vala:89:2: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/glib.h:64: included_from: Included from here. slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/session-list.vala:89:2: note: in expansion of macro ‘g_return_val_if_fail’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/session-list.c:143:33: note: in definition of macro ‘_g_object_unref0’ # 84| construct # 85| { # 86|-> prompt = add_session_prompt ("session"); # 87| } # 88| Error: COMPILER_WARNING (CWE-477): [#def72] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/settings.vala: scope_hint: In function ‘ug_settings_safe_get_boolean’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/settings.vala:68:2: warning[-Wdeprecated-declarations]: ‘g_settings_list_keys’ is deprecated: Use 'g_settings_schema_list_keys' instead /usr/include/glib-2.0/gio/gio.h:137: included_from: Included from here. /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28: included_from: Included from here. /usr/include/gtk-3.0/gdk/gdk.h:32: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtk.h:30: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkx.h:27: included_from: Included from here. <command-line>: included_from: Included from here. /usr/include/glib-2.0/gio/gsettings.h:98:25: note: declared here # 66| { # 67| var gsettings = new Settings (SCHEMA); # 68|-> string[] keys = gsettings.list_keys (); # 69| foreach (var k in keys) # 70| if (k == key) Error: COMPILER_WARNING (CWE-843): [#def73] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/settings.vala: scope_hint: In function ‘ug_settings_set_strv’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/settings.vala:110:48: warning[-Wincompatible-pointer-types]: passing argument 3 of ‘g_settings_set_strv’ from incompatible pointer type /usr/include/glib-2.0/gio/gsettings.h:191:94: note: expected ‘const gchar * const*’ {aka ‘const char * const*’} but argument is of type ‘gchar **’ {aka ‘char **’} # 108| { # 109| var gsettings = new Settings (SCHEMA); # 110|-> return gsettings.set_strv (key, value); # 111| } # 112| Error: COMPILER_WARNING (CWE-843): [#def74] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/settings.vala: scope_hint: In function ‘ug_settings_apply_conf_settings’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/settings.vala:224:49: warning[-Wincompatible-pointer-types]: passing argument 3 of ‘g_settings_set_strv’ from incompatible pointer type /usr/include/glib-2.0/gio/gsettings.h:191:94: note: expected ‘const gchar * const*’ {aka ‘const char * const*’} but argument is of type ‘gchar **’ {aka ‘char **’} # 222| var value = keyfile.get_string_list (GROUP_NAME, key); # 223| debug ("Overriding dconf setting for %s", key); # 224|-> gsettings.set_strv (key, value); # 225| } # 226| catch (Error e) { Error: COMPILER_WARNING (CWE-477): [#def75] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/shutdown-dialog.vala: scope_hint: In function ‘shutdown_dialog_construct’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/shutdown-dialog.vala:107:3: warning[-Wdeprecated-declarations]: ‘gtk_widget_override_font’ is deprecated /usr/include/gtk-3.0/gtk/gtkapplication.h:27: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkwindow.h:33: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkdialog.h:32: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtk.h:31: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkwidget.h:1153:14: note: declared here # 105| var title_label = new Gtk.Label (_("Shut Down")); # 106| title_label.visible = true; # 107|-> title_label.override_font (Pango.FontDescription.from_string ("Ubuntu Light 15")); # 108| title_label.override_color (Gtk.StateFlags.NORMAL, { 1.0f, 1.0f, 1.0f, 1.0f }); # 109| title_label.set_alignment (0.0f, 0.5f); Error: COMPILER_WARNING (CWE-477): [#def76] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/shutdown-dialog.vala:108:3: warning[-Wdeprecated-declarations]: ‘gtk_widget_override_color’ is deprecated /usr/include/gtk-3.0/gtk/gtkwidget.h:1144:14: note: declared here # 106| title_label.visible = true; # 107| title_label.override_font (Pango.FontDescription.from_string ("Ubuntu Light 15")); # 108|-> title_label.override_color (Gtk.StateFlags.NORMAL, { 1.0f, 1.0f, 1.0f, 1.0f }); # 109| title_label.set_alignment (0.0f, 0.5f); # 110| vbox.pack_start (title_label, false, false, 0); Error: COMPILER_WARNING (CWE-477): [#def77] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/shutdown-dialog.vala:109:3: warning[-Wdeprecated-declarations]: ‘gtk_misc_set_alignment’ is deprecated /usr/include/gtk-3.0/gtk/gtklabel.h:32: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkaccellabel.h:35: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtk.h:33: included_from: Included from here. /usr/include/gtk-3.0/gtk/deprecated/gtkmisc.h:72:9: note: declared here # 107| title_label.override_font (Pango.FontDescription.from_string ("Ubuntu Light 15")); # 108| title_label.override_color (Gtk.StateFlags.NORMAL, { 1.0f, 1.0f, 1.0f, 1.0f }); # 109|-> title_label.set_alignment (0.0f, 0.5f); # 110| vbox.pack_start (title_label, false, false, 0); # 111| Error: COMPILER_WARNING (CWE-477): [#def78] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/shutdown-dialog.vala:141:2: warning[-Wdeprecated-declarations]: ‘gtk_widget_override_font’ is deprecated /usr/include/gtk-3.0/gtk/gtkwidget.h:1153:14: note: declared here # 139| var label = new Gtk.Label (text); # 140| label.set_line_wrap (true); # 141|-> label.override_font (Pango.FontDescription.from_string ("Ubuntu Light 12")); # 142| label.override_color (Gtk.StateFlags.NORMAL, { 1.0f, 1.0f, 1.0f, 1.0f }); # 143| label.set_alignment (0.0f, 0.5f); Error: COMPILER_WARNING (CWE-477): [#def79] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/shutdown-dialog.vala:142:2: warning[-Wdeprecated-declarations]: ‘gtk_widget_override_color’ is deprecated /usr/include/gtk-3.0/gtk/gtkwidget.h:1144:14: note: declared here # 140| label.set_line_wrap (true); # 141| label.override_font (Pango.FontDescription.from_string ("Ubuntu Light 12")); # 142|-> label.override_color (Gtk.StateFlags.NORMAL, { 1.0f, 1.0f, 1.0f, 1.0f }); # 143| label.set_alignment (0.0f, 0.5f); # 144| label.visible = true; Error: COMPILER_WARNING (CWE-477): [#def80] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/shutdown-dialog.vala:143:2: warning[-Wdeprecated-declarations]: ‘gtk_misc_set_alignment’ is deprecated /usr/include/gtk-3.0/gtk/deprecated/gtkmisc.h:72:9: note: declared here # 141| label.override_font (Pango.FontDescription.from_string ("Ubuntu Light 12")); # 142| label.override_color (Gtk.StateFlags.NORMAL, { 1.0f, 1.0f, 1.0f, 1.0f }); # 143|-> label.set_alignment (0.0f, 0.5f); # 144| label.visible = true; # 145| vbox.pack_start (label, false, false, 0); Error: COMPILER_WARNING (CWE-704): [#def81] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/shutdown-dialog.vala: scope_hint: In function ‘shutdown_dialog_update_background_color’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/shutdown-dialog.vala:298:17: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type # 296| double closest_diff = 200.0f; # 297| # 298|-> foreach (var c in cmp_colors) # 299| { # 300| double cmp_hue, cmp_sat, cmp_value; Error: COMPILER_WARNING (CWE-477): [#def82] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/shutdown-dialog.vala: scope_hint: In function ‘dialog_button_construct’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/shutdown-dialog.vala:551:2: warning[-Wdeprecated-declarations]: ‘gtk_button_set_focus_on_click’ is deprecated: Use 'gtk_widget_set_focus_on_click' instead /usr/include/gtk-3.0/gtk/gtk.h:54: included_from: Included from here. /usr/include/gtk-3.0/gtk/gtkbutton.h:138:23: note: declared here # 549| this.active_filename = active_filename; # 550| relief = Gtk.ReliefStyle.NONE; # 551|-> Gtk.button_set_focus_on_click (this, false); # 552| i = new Gtk.Image.from_file (inactive_filename); # 553| i.visible = true; Error: COMPILER_WARNING (CWE-477): [#def83] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/shutdown-dialog.vala:561:3: warning[-Wdeprecated-declarations]: ‘gtk_widget_override_font’ is deprecated /usr/include/gtk-3.0/gtk/gtkwidget.h:1153:14: note: declared here # 559| { # 560| l.visible = true; # 561|-> l.override_font (Pango.FontDescription.from_string ("Ubuntu Light 12")); # 562| l.override_color (Gtk.StateFlags.NORMAL, { 1.0f, 1.0f, 1.0f, 0.0f }); # 563| l.override_color (Gtk.StateFlags.FOCUSED, { 1.0f, 1.0f, 1.0f, 1.0f }); Error: COMPILER_WARNING (CWE-477): [#def84] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/shutdown-dialog.vala:562:3: warning[-Wdeprecated-declarations]: ‘gtk_widget_override_color’ is deprecated /usr/include/gtk-3.0/gtk/gtkwidget.h:1144:14: note: declared here # 560| l.visible = true; # 561| l.override_font (Pango.FontDescription.from_string ("Ubuntu Light 12")); # 562|-> l.override_color (Gtk.StateFlags.NORMAL, { 1.0f, 1.0f, 1.0f, 0.0f }); # 563| l.override_color (Gtk.StateFlags.FOCUSED, { 1.0f, 1.0f, 1.0f, 1.0f }); # 564| l.override_color (Gtk.StateFlags.ACTIVE, { 1.0f, 1.0f, 1.0f, 1.0f }); Error: COMPILER_WARNING (CWE-477): [#def85] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/shutdown-dialog.vala:563:3: warning[-Wdeprecated-declarations]: ‘gtk_widget_override_color’ is deprecated /usr/include/gtk-3.0/gtk/gtkwidget.h:1144:14: note: declared here # 561| l.override_font (Pango.FontDescription.from_string ("Ubuntu Light 12")); # 562| l.override_color (Gtk.StateFlags.NORMAL, { 1.0f, 1.0f, 1.0f, 0.0f }); # 563|-> l.override_color (Gtk.StateFlags.FOCUSED, { 1.0f, 1.0f, 1.0f, 1.0f }); # 564| l.override_color (Gtk.StateFlags.ACTIVE, { 1.0f, 1.0f, 1.0f, 1.0f }); # 565| this.get_accessible ().set_name (l.get_text ()); Error: COMPILER_WARNING (CWE-477): [#def86] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/shutdown-dialog.vala:564:3: warning[-Wdeprecated-declarations]: ‘gtk_widget_override_color’ is deprecated /usr/include/gtk-3.0/gtk/gtkwidget.h:1144:14: note: declared here # 562| l.override_color (Gtk.StateFlags.NORMAL, { 1.0f, 1.0f, 1.0f, 0.0f }); # 563| l.override_color (Gtk.StateFlags.FOCUSED, { 1.0f, 1.0f, 1.0f, 1.0f }); # 564|-> l.override_color (Gtk.StateFlags.ACTIVE, { 1.0f, 1.0f, 1.0f, 1.0f }); # 565| this.get_accessible ().set_name (l.get_text ()); # 566| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def87] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/slick-greeter.vala: scope_hint: In function ‘slick_greeter_construct’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/slick-greeter.vala:52:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘g_type_create_instance(object_type)’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/slick-greeter.vala: scope_hint: In function ‘slick_greeter_construct’ # 50| { # 51| singleton = this; # 52|-> test_mode = test_mode_; # 53| # 54| /* Prepare to set the background */ Error: COMPILER_WARNING (CWE-477): [#def88] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/slick-greeter.vala: scope_hint: In function ‘slick_greeter_main’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/slick-greeter.vala:852:3: warning[-Wdeprecated-declarations]: ‘gdk_flush’ is deprecated: Use 'gdk_display_flush' instead /usr/include/gtk-3.0/gdk/gdk.h:50: included_from: Included from here. /usr/include/gtk-3.0/gdk/gdkmain.h:124:6: note: declared here # 850| if (atom != X.None) { # 851| xdisplay.delete_property (window, atom); # 852|-> Gdk.flush(); # 853| } # 854| Error: COMPILER_WARNING (CWE-704): [#def89] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/toggle-box.vala: scope_hint: In function ‘toggle_box_set_default_key’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/toggle-box.vala:22:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type # 20| public class ToggleBox : Gtk.Box # 21| { # 22|-> public string default_key {get; construct;} # 23| public string starting_key {get; construct;} # 24| public string selected_key {get; protected set;} Error: COMPILER_WARNING (CWE-704): [#def90] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/toggle-box.vala: scope_hint: In function ‘toggle_box_set_starting_key’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/toggle-box.vala:23:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type # 21| { # 22| public string default_key {get; construct;} # 23|-> public string starting_key {get; construct;} # 24| public string selected_key {get; protected set;} # 25| protected Gtk.Box scrolled_box; Error: COMPILER_WARNING (CWE-704): [#def91] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/toggle-box.vala: scope_hint: In function ‘toggle_box_set_selected_key’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/toggle-box.vala:24:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type # 22| public string default_key {get; construct;} # 23| public string starting_key {get; construct;} # 24|-> public string selected_key {get; protected set;} # 25| protected Gtk.Box scrolled_box; # 26| Error: COMPILER_WARNING (CWE-704): [#def92] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/user-list.c: scope_hint: In function ‘___lambda0__gcompare_data_func’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/user-list.c:4856:29: warning[-Wdiscarded-qualifiers]: passing argument 2 of ‘__lambda0_’ discards ‘const’ qualifier from pointer target type slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/user-list.c:4836:43: note: expected ‘const void ***’ but argument is of type ‘gconstpointer’ {aka ‘const void *’} # 4854| #line 5924 "glib-2.0.vapi" # 4855| result = _data11_->compare_func ((gconstpointer**) (*a), (gconstpointer**) (*b)); # 4856|-> #line 5924 "glib-2.0.vapi" # 4857| return result; # 4858| #line 4848 "user-list.c" Error: COMPILER_WARNING (CWE-704): [#def93] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/user-list.c:4856:32: warning[-Wdiscarded-qualifiers]: passing argument 3 of ‘__lambda0_’ discards ‘const’ qualifier from pointer target type slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/user-list.c:4837:29: note: expected ‘const void ***’ but argument is of type ‘gconstpointer’ {aka ‘const void *’} # 4854| #line 5924 "glib-2.0.vapi" # 4855| result = _data11_->compare_func ((gconstpointer**) (*a), (gconstpointer**) (*b)); # 4856|-> #line 5924 "glib-2.0.vapi" # 4857| return result; # 4858| #line 4848 "user-list.c" Error: GCC_ANALYZER_WARNING (CWE-476): [#def94] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/user-list.vala: scope_hint: In function ‘user_list_set_remote_directory_servers.part.0’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/user-list.vala:287:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 285| for (int i = 0; !found && i < server_list.length; i++) # 286| { # 287|-> found = remote_server.url == server_list[i].url; # 288| } # 289| if (!found) Error: GCC_ANALYZER_WARNING (CWE-476): [#def95] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/user-list.vala:291:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 289| if (!found) # 290| { # 291|-> if (remote_server.url == currently_browsing_server_url) # 292| { # 293| /* The server we where "browsing" disappeared, so kill its children */ Error: COMPILER_WARNING (CWE-843): [#def96] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/user-list.vala: scope_hint: In function ‘__lambda48_’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/user-list.vala:386:10: warning[-Wincompatible-pointer-types]: assignment to ‘RemoteLoginService *’ {aka ‘struct _RemoteLoginService *’} from incompatible pointer type ‘GObject *’ {aka ‘struct _GObject *’} # 384| try # 385| { # 386|-> remote_login_service = Bus.get_proxy.end<RemoteLoginService> (res); # 387| remote_login_service.servers_updated.connect (set_remote_directory_servers); # 388| remote_login_service.login_servers_updated.connect (remote_login_servers_updated); Error: GCC_ANALYZER_WARNING (CWE-476): [#def97] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/user-list.vala: scope_hint: In function ‘user_list_change_background_timeout_cb’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/user-list.vala:605:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/user-list.c: scope_hint: In function ‘user_list_change_background_timeout_cb’ /usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here. /usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here. /usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here. /usr/include/glib-2.0/glib.h:32: included_from: Included from here. /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/user-list.vala:613:2: note: in expansion of macro ‘g_return_if_fail’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/user-list.vala:599:2: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here. /usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here. /usr/include/glib-2.0/glib-object.h:24: included_from: Included from here. /usr/include/glib-2.0/gio/gioenums.h:30: included_from: Included from here. /usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here. /usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here. /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28: included_from: Included from here. /usr/include/gtk-3.0/gdk/gdk.h:32: included_from: Included from here. /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/user-list.c:234:34: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/user-list.vala:604:7: note: in expansion of macro ‘IS_USER_PROMPT_BOX’ /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/user-list.c:234:34: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/user-list.vala:604:7: note: in expansion of macro ‘IS_USER_PROMPT_BOX’ # 603| new_background_file = null; # 604| else if (selected_entry is UserPromptBox) # 605|-> new_background_file = (selected_entry as UserPromptBox).background; # 606| # 607| background.current_background = new_background_file; Error: GCC_ANALYZER_WARNING (CWE-476): [#def98] slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/user-list.vala: scope_hint: In function ‘user_list_entry_selected_cb’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/user-list.vala:654:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/user-list.vala:650:2: note: in expansion of macro ‘g_return_if_fail’ /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/user-list.c:234:34: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/user-list.vala:653:6: note: in expansion of macro ‘IS_USER_PROMPT_BOX’ /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/user-list.c:234:34: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’ slick-greeter-2.0.6-build/slick-greeter-2.0.6/src/user-list.vala:653:6: note: in expansion of macro ‘IS_USER_PROMPT_BOX’ # 652| SlickGreeter.singleton.set_state ("last-user", username); # 653| if (selected_entry is UserPromptBox) # 654|-> session = (selected_entry as UserPromptBox).session; # 655| else # 656| session = null;
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-89.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | slick-greeter-2.0.6-1.fc42 |
store-results-to | /tmp/tmpsm0whdqo/slick-greeter-2.0.6-1.fc42.tar.xz |
time-created | 2024-11-13 03:15:11 |
time-finished | 2024-11-13 03:17:19 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpsm0whdqo/slick-greeter-2.0.6-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpsm0whdqo/slick-greeter-2.0.6-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |