Package: qwbfsmanager Version: 1.2.1-1 Severity: normal Tags: upstream patch User: debian-...@lists.debian.org Usertags: ftbfs-gcc-4.7
qwbfsmanager fails to build with gcc 4.7. g++ -c -pipe -O2 -fPIC -D_REENTRANT -Wall -W -DFRESH_CORE_BUILD -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I./src -I./src/core -I./src/gui -I./src/gui/actionmanager -I./src/gui/consolemanager -I./src/gui/dockmanager -I./src/gui/dockwidget -I./src/gui/environmentvariablemanager -I./src/gui/gc-updatechecker -I./src/gui/listeditor -I./src/gui/models -I./src/gui/queuedmessage -I./src/gui/stylemanager -Isrc -I/usr/X11R6/include -Ibuild/release/moc -Ibuild/release/ui -o build/release/obj/pEnvironmentVariablesModel.o src/gui/environmentvariablemanager/pEnvironmentVariablesModel.cpp src/gui/environmentvariablemanager/pEnvironmentVariablesModel.cpp: In static member function 'static pEnvironmentVariablesModel::Variables pEnvironmentVariablesModel::stringListToVariables(const QStringList&)': src/gui/environmentvariablemanager/pEnvironmentVariablesModel.cpp:228:40: error: redeclaration of 'pEnvironmentVariablesModel::Variable variable' src/gui/environmentvariablemanager/pEnvironmentVariablesModel.cpp:224:201: error: 'const QString& variable' previously declared here make[2]: *** [build/release/obj/pEnvironmentVariablesModel.o] Error 1 See also: http://gcc.gnu.org/gcc-4.7/porting_to.html , "Detection of redeclared variable names in nested scopes" Patch attached. -- System Information: Debian Release: wheezy/sid APT prefers precise-updates APT policy: (500, 'precise-updates'), (500, 'precise-security'), (500, 'precise-proposed'), (500, 'precise'), (100, 'precise-backports') Architecture: i386 (i686) Kernel: Linux 3.2.0-25-generic (SMP w/2 CPU cores) Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
Description: fix compilation with gcc 4.7 Author: Ilya Barygin <randomact...@ubuntu.com> --- qwbfsmanager-1.2.1.orig/fresh/src/gui/environmentvariablemanager/pEnvironmentVariablesModel.cpp +++ qwbfsmanager-1.2.1/fresh/src/gui/environmentvariablemanager/pEnvironmentVariablesModel.cpp @@ -225,12 +225,12 @@ pEnvironmentVariablesModel::Variables pE const QString name = variable.section( '=', 0, 0 ); const QString value = variable.section( '=', 1 ); - pEnvironmentVariablesModel::Variable variable; - variable.name = name; - variable.value = value; - variable.enabled = true; + pEnvironmentVariablesModel::Variable variable2; + variable2.name = name; + variable2.value = value; + variable2.enabled = true; - items[ name ] = variable; + items[ name ] = variable2; } return items;