File libyui-gcc16.patch of Package libyui
diff -upr libyui-4.7.6.orig/libyui-ncurses-pkg/src/NCPkgPopupDeps.cc libyui-4.7.6/libyui-ncurses-pkg/src/NCPkgPopupDeps.cc
--- libyui-4.7.6.orig/libyui-ncurses-pkg/src/NCPkgPopupDeps.cc 2026-02-23 10:48:10.845731482 +0000
+++ libyui-4.7.6/libyui-ncurses-pkg/src/NCPkgPopupDeps.cc 2026-02-23 10:53:13.373623589 +0000
@@ -293,9 +293,8 @@ bool NCPkgPopupDeps::solve( NCSelectionB
b = rproblems.begin(),
e = rproblems.end(),
i;
- int idx;
- for (i = b, idx = 0; i != e; ++i, ++idx)
+ for (i = b; i != e; ++i)
{
yuiMilestone() << "Problem: " << (*i)->description() << endl;
yuiMilestone() << "Details: " << (*i)->details() << endl;
--- libyui-4.7.6.orig/libyui-qt-pkg/src/YQPkgLangList.cc 2026-02-23 11:22:19.481968992 +0000
+++ libyui-4.7.6/libyui-qt-pkg/src/YQPkgLangList.cc 2026-02-23 11:26:22.265074728 +0000
@@ -122,9 +122,6 @@ YQPkgLangList::filter()
if ( selection() )
{
- int total = 0;
- int installed = 0;
-
zypp::Locale lang = selection()->zyppLang();
zypp::sat::LocaleSupport myLocale( lang );
@@ -133,10 +130,6 @@ YQPkgLangList::filter()
ZyppPkg zyppPkg = tryCastToZyppPkg( (*it)->theObj() );
if ( zyppPkg )
{
- if ( (*it)->installedSize() > 0 )
- ++installed;
- ++total;
-
emit filterMatch( *it, zyppPkg );
}
}