Package: langupdate Version: 0.1.0 Followup-For: Bug #625362 User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu precise ubuntu-patch
In Debian sid, the attached patch can be applied to achieve the following: * Fix unused-but-set-variable warnings revealed by -Wall CFLAGS. (Closes: #625362) The bug report's original title and summary are incorrect. The source package builds fine, at least locally in current sid sbuilds of amd64 and armel, so the only things from the build log that potentially are problematic are revealed by -Wall. Thanks for considering the patch. -- System Information: Debian Release: wheezy/sid APT prefers oneiric-updates APT policy: (500, 'oneiric-updates'), (500, 'oneiric-security'), (500, 'oneiric-proposed'), (500, 'oneiric') Architecture: amd64 (x86_64) Kernel: Linux 3.0.0-12-generic (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff -Nru langupdate-0.1.0/src/aptcache.cc langupdate-0.1.0+nmu1/src/aptcache.cc --- langupdate-0.1.0/src/aptcache.cc 2009-04-03 12:12:43.000000000 -0400 +++ langupdate-0.1.0+nmu1/src/aptcache.cc 2011-11-04 23:18:51.000000000 -0400 @@ -89,7 +89,6 @@ static bool LoadSourceNames (gint verbose) { gchar *src, *bin; - GList * p; pkgCache &Cache = *LangCache; pkgRecords pkgRecs(*LangCache); @@ -98,7 +97,6 @@ src_table = g_hash_table_new (g_str_hash, g_str_equal); - p = NULL; pkgCache::PkgIterator Pkg = Cache.PkgBegin(); for (;Pkg.end() != true; Pkg++) { @@ -269,9 +267,7 @@ lu_get_sourcepkg (const gchar * binary) { gchar * src; - gint size; - size = g_hash_table_size (src_table); src = g_strdup((gchar*)g_hash_table_lookup (src_table, binary)); return src; }