Task #131018 - fixed.err

back to task #131018
download
Error: COMPILER_WARNING (CWE-477):
gnome-software-50.0/lib/gs-appstream.c: scope_hint: In function ‘gs_appstream_do_search’
gnome-software-50.0/lib/gs-appstream.c:1773:9: warning[-Wdeprecated-declarations]: ‘xb_silo_lookup_query’ is deprecated: Use 'xb_silo_lookup_query_full' instead
# 1773 |         extends_query = xb_silo_lookup_query (silo, "extends");
#      |         ^~~~~~~~~~~~~
/usr/include/libxmlb-2/libxmlb/xb-builder.h:13: included_from: Included from here.
/usr/include/libxmlb-2/xmlb.h:15: included_from: Included from here.
gnome-software-50.0/lib/gs-silo-wrapper.h:13: included_from: Included from here.
gnome-software-50.0/lib/gnome-software.h:54: included_from: Included from here.
gnome-software-50.0/lib/gs-appstream.c:14: included_from: Included from here.
/usr/include/libxmlb-2/libxmlb/xb-silo.h:115:1: note: declared here
#  115 | xb_silo_lookup_query(XbSilo *self, const gchar *xpath) G_GNUC_NON_NULL(1, 2);
#      | ^~~~~~~~~~~~~~~~~~~~
# 1771|   		gs_appstream_read_silo_info_from_component (g_ptr_array_index (components, 0), &silo_filename, &default_scope);
# 1772|   
# 1773|-> 	extends_query = xb_silo_lookup_query (silo, "extends");
# 1774|   
# 1775|   	for (guint i = 0; i < components->len; i++) {

Error: COMPILER_WARNING (CWE-477):
gnome-software-50.0/lib/gs-appstream.c:1773:9: warning[-Wdeprecated-declarations]: ‘xb_silo_lookup_query’ is deprecated: Use 'xb_silo_lookup_query_full' instead
# 1771|   		gs_appstream_read_silo_info_from_component (g_ptr_array_index (components, 0), &silo_filename, &default_scope);
# 1772|   
# 1773|-> 	extends_query = xb_silo_lookup_query (silo, "extends");
# 1774|   
# 1775|   	for (guint i = 0; i < components->len; i++) {

Error: COMPILER_WARNING (CWE-704):
gnome-software-50.0/plugins/fedora-langpacks/gs-plugin-fedora-langpacks.c: scope_hint: In function ‘find_langpack’
gnome-software-50.0/plugins/fedora-langpacks/gs-plugin-fedora-langpacks.c:89:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   89 |         separator = strpbrk (locale, ".@");
#      |                   ^
#   87|   	 * Get the locale without codeset and modifier as required for langpacks.
#   88|   	 */
#   89|-> 	separator = strpbrk (locale, ".@");
#   90|   	if (separator != NULL)
#   91|   		*separator = '\0';

Error: COMPILER_WARNING (CWE-704):
gnome-software-50.0/plugins/fedora-langpacks/gs-plugin-fedora-langpacks.c:89:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   87|   	 * Get the locale without codeset and modifier as required for langpacks.
#   88|   	 */
#   89|-> 	separator = strpbrk (locale, ".@");
#   90|   	if (separator != NULL)
#   91|   		*separator = '\0';

Error: COMPILER_WARNING (CWE-477):
gnome-software-50.0/plugins/flatpak/gs-flatpak.c: scope_hint: In function ‘get_renamed_component’
gnome-software-50.0/plugins/flatpak/gs-flatpak.c:3349:9: warning[-Wdeprecated-declarations]: ‘xb_silo_lookup_query’ is deprecated: Use 'xb_silo_lookup_query_full' instead
# 3349 |         query = xb_silo_lookup_query (silo, "components[@origin=?]/component/bundle[@type='flatpak'][text()=?]/..");
#      |         ^~~~~
/usr/include/libxmlb-2/libxmlb/xb-builder.h:13: included_from: Included from here.
/usr/include/libxmlb-2/xmlb.h:15: included_from: Included from here.
gnome-software-50.0/plugins/flatpak/gs-flatpak.c:38: included_from: Included from here.
/usr/include/libxmlb-2/libxmlb/xb-silo.h:115:1: note: declared here
#  115 | xb_silo_lookup_query(XbSilo *self, const gchar *xpath) G_GNUC_NON_NULL(1, 2);
#      | ^~~~~~~~~~~~~~~~~~~~
# 3347|   		return NULL;
# 3348|   
# 3349|-> 	query = xb_silo_lookup_query (silo, "components[@origin=?]/component/bundle[@type='flatpak'][text()=?]/..");
# 3350|   	xb_value_bindings_bind_str (xb_query_context_get_bindings (&context), 0, origin, NULL);
# 3351|   	xb_value_bindings_bind_str (xb_query_context_get_bindings (&context), 1, renamed_to, NULL);

Error: COMPILER_WARNING (CWE-477):
gnome-software-50.0/plugins/flatpak/gs-flatpak.c:3349:9: warning[-Wdeprecated-declarations]: ‘xb_silo_lookup_query’ is deprecated: Use 'xb_silo_lookup_query_full' instead
# 3347|   		return NULL;
# 3348|   
# 3349|-> 	query = xb_silo_lookup_query (silo, "components[@origin=?]/component/bundle[@type='flatpak'][text()=?]/..");
# 3350|   	xb_value_bindings_bind_str (xb_query_context_get_bindings (&context), 0, origin, NULL);
# 3351|   	xb_value_bindings_bind_str (xb_query_context_get_bindings (&context), 1, renamed_to, NULL);

Error: COMPILER_WARNING (CWE-704):
gnome-software-50.0/plugins/packagekit/gs-markdown.c: scope_hint: In function ‘gs_markdown_strstr_spaces’
gnome-software-50.0/plugins/packagekit/gs-markdown.c:274:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  274 |         found = strstr (haystack_new, needle);
#      |               ^
#  272|   retry:
#  273|   	/* don't find if surrounded by spaces */
#  274|-> 	found = strstr (haystack_new, needle);
#  275|   	if (found == NULL)
#  276|   		return NULL;

Error: COMPILER_WARNING (CWE-704):
gnome-software-50.0/plugins/packagekit/gs-markdown.c:274:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  272|   retry:
#  273|   	/* don't find if surrounded by spaces */
#  274|-> 	found = strstr (haystack_new, needle);
#  275|   	if (found == NULL)
#  276|   		return NULL;

Error: COMPILER_WARNING (CWE-704):
gnome-software-50.0/plugins/packagekit/gs-markdown.c: scope_hint: In function ‘gs_markdown_to_text_line_format’
gnome-software-50.0/plugins/packagekit/gs-markdown.c:398:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  398 |         text = strstr (line, "`");
#      |              ^
#  396|   
#  397|   	/* optimise the trivial case where we don't have any code tags */
#  398|-> 	text = strstr (line, "`");
#  399|   	if (text == NULL)
#  400|   		return gs_markdown_to_text_line_format_sections (self, line);

Error: COMPILER_WARNING (CWE-704):
gnome-software-50.0/plugins/packagekit/gs-markdown.c:398:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  396|   
#  397|   	/* optimise the trivial case where we don't have any code tags */
#  398|-> 	text = strstr (line, "`");
#  399|   	if (text == NULL)
#  400|   		return gs_markdown_to_text_line_format_sections (self, line);

Error: COMPILER_WARNING (CWE-704):
gnome-software-50.0/plugins/rpm-ostree/gs-rpm-ostree-utils.c: scope_hint: In function ‘split_changelogs’
gnome-software-50.0/plugins/rpm-ostree/gs-rpm-ostree-utils.c:260:56: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
#  260 |                                         gchar *space = strchr (package_line, ' ');
#      |                                                        ^~~~~~
#  258|   				if (app == NULL) {
#  259|   					/* it should look like 'name version_from -> version_to'*/
#  260|-> 					gchar *space = strchr (package_line, ' ');
#  261|   					if (space != NULL)
#  262|   						*space = '\0';

Error: COMPILER_WARNING (CWE-704):
gnome-software-50.0/plugins/rpm-ostree/gs-rpm-ostree-utils.c:260:56: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
#  258|   				if (app == NULL) {
#  259|   					/* it should look like 'name version_from -> version_to'*/
#  260|-> 					gchar *space = strchr (package_line, ' ');
#  261|   					if (space != NULL)
#  262|   						*space = '\0';

Error: COMPILER_WARNING (CWE-704):
gnome-software-50.0/plugins/rpm-ostree/gs-rpm-ostree-utils.c:304:48: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
#  304 |                                 gchar *space = strchr (package_line, ' ');
#      |                                                ^~~~~~
#  302|   			} else if (state == GS_APP_STATE_UPDATABLE_LIVE) {
#  303|   				/* it should look like 'name version_from -> version_to'*/
#  304|-> 				gchar *space = strchr (package_line, ' ');
#  305|   				if (space != NULL) {
#  306|   					gchar *tmp;

Error: COMPILER_WARNING (CWE-704):
gnome-software-50.0/plugins/rpm-ostree/gs-rpm-ostree-utils.c:304:48: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
#  302|   			} else if (state == GS_APP_STATE_UPDATABLE_LIVE) {
#  303|   				/* it should look like 'name version_from -> version_to'*/
#  304|-> 				gchar *space = strchr (package_line, ' ');
#  305|   				if (space != NULL) {
#  306|   					gchar *tmp;