summaryrefslogtreecommitdiffstats
path: root/src/tools/qcstring.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/qcstring.h')
-rw-r--r--src/tools/qcstring.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tools/qcstring.h b/src/tools/qcstring.h
index a396f64b..96eb9f80 100644
--- a/src/tools/qcstring.h
+++ b/src/tools/qcstring.h
@@ -164,7 +164,11 @@ public:
TQCString copy() const;
- TQCString &sprintf( const char *format, ... );
+ TQCString &sprintf( const char *format, ... )
+#if defined(Q_CC_GNU) && !defined(__INSURE__)
+ __attribute__ ((format (printf, 2, 3)))
+#endif
+ ;
int find( char c, int index=0, bool cs=TRUE ) const;
int find( const char *str, int index=0, bool cs=TRUE ) const;