summaryrefslogtreecommitdiff
path: root/devel/qt4-linguist/files/patch-0185-fix-format-strings.diff
blob: 3dfc822ed00d2d8b9006f9dc801b6c829d738612 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- tools/linguist/shared/profileevaluator.h
+++ tools/linguist/shared/profileevaluator.h
@@ -88,7 +88,11 @@ protected:
 
 private:
     void logMessage(const QString &msg, MessageType mt = MT_DebugLevel2);
-    void logMessage(MessageType mt, const char *msg, ...);
+    void logMessage(MessageType mt, const char *msg, ...)
+#if defined(Q_CC_GNU) && !defined(__INSURE__)
+        __attribute__ ((format (printf, 3, 4)))
+#endif
+        ;
     QString expandVariableReferences(const QString &value);
     QString evaluateExpandFunction(const QByteArray &func, const QString &arguments);