While compiling the lib with exceptions enabled, an error related of an 
unknown identifier was shown in file src/testlib/qtestcase.cpp near line 
1490.
The error was the unknown callgrindChildExitCode int, that is declared line ~ 
1415.

This is dues to the exceptions support, that adds a try block around it, so 
the identifier isn't defined at the return statement.

I made a patch that make it work fine for me, it just changes the declaration 
line of the identifier for something outside the try block.

--- qt-x11-opensource-src-4.5.0-rc1/src/testlib/qtestcase.cpp	2009-02-04 17:05:30.000000000 +0100
+++ qt-x11-opensource-src-4.5.0-rc1/src/testlib/qtestcase.cpp	2009-02-10 18:29:59.000000000 +0100
@@ -1366,6 +1366,9 @@
      IOPMAssertionID powerID;
 #endif
 #endif
+#ifdef QTESTLIB_USE_VALGRIND 
+    int callgrindChildExitCode;
+#endif
 #ifndef QT_NO_EXCEPTIONS
     try {
 #endif
@@ -1411,7 +1414,6 @@
     QTestResult::setCurrentTestObject(metaObject->className());
     qParseArgs(argc, argv);
 #ifdef QTESTLIB_USE_VALGRIND
-    int callgrindChildExitCode;
     if (QBenchmarkGlobalData::current->mode() == QBenchmarkGlobalData::CallgrindParentProcess) {
         const QStringList origAppArgs(QCoreApplication::arguments());
         if (!QBenchmarkValgrindUtils::rerunThroughCallgrind(origAppArgs, callgrindChildExitCode))
_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback

Reply via email to