[qt3] work around more -Werror=format-security false positives

Kevin Kofler kkofler at fedoraproject.org
Tue Jan 14 02:11:05 UTC 2014


commit 66b56b82475c0d983a4e328333ecc05e56c99578
Author: Kevin Kofler <Kevin at tigcc.ticalc.org>
Date:   Tue Jan 14 03:11:10 2014 +0100

    work around more -Werror=format-security false positives
    
    Yes, those are also false positives.

 qt-x11-free-3.3.8b-#1037297.patch |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)
---
diff --git a/qt-x11-free-3.3.8b-#1037297.patch b/qt-x11-free-3.3.8b-#1037297.patch
index 621ce6c..a84cebe 100644
--- a/qt-x11-free-3.3.8b-#1037297.patch
+++ b/qt-x11-free-3.3.8b-#1037297.patch
@@ -1,3 +1,26 @@
+diff -ur qt-x11-free-3.3.8b/src/tools/qgcache.cpp qt-x11-free-3.3.8b-#1037297/src/tools/qgcache.cpp
+--- qt-x11-free-3.3.8b/src/tools/qgcache.cpp	2008-01-15 20:09:13.000000000 +0100
++++ qt-x11-free-3.3.8b-#1037297/src/tools/qgcache.cpp	2014-01-14 03:10:08.000000000 +0100
+@@ -639,9 +639,7 @@
+ void QGCache::statistics() const
+ {
+ #if defined(QT_DEBUG)
+-    QString line;
+-    line.fill( '*', 80 );
+-    qDebug( line.ascii() );
++    qDebug( "********************************************************************************" );
+     qDebug( "CACHE STATISTICS:" );
+     qDebug( "cache contains %d item%s, with a total cost of %d",
+ 	   count(), count() != 1 ? "s" : "", tCost );
+@@ -662,7 +660,7 @@
+ 	   lruList->dumps != 1 ? "have" : "has", lruList->dumpCosts );
+     qDebug( "Statistics from internal dictionary class:" );
+     dict->statistics();
+-    qDebug( line.ascii() );
++    qDebug( "********************************************************************************" );
+ #endif
+ }
+ 
 diff -ur qt-x11-free-3.3.8b/src/tools/qgdict.cpp qt-x11-free-3.3.8b-#1037297/src/tools/qgdict.cpp
 --- qt-x11-free-3.3.8b/src/tools/qgdict.cpp	2008-01-15 20:09:13.000000000 +0100
 +++ qt-x11-free-3.3.8b-#1037297/src/tools/qgdict.cpp	2014-01-14 02:46:07.000000000 +0100


More information about the scm-commits mailing list