diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-12 14:59:51 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-12 14:59:51 -0600 |
commit | ce82c9945392502505d96b5a4bb0cfeaed3d834a (patch) | |
tree | 622494895e93f93b21bb058deeb7c71cc1ed706d /src/tools | |
parent | 540da173004e3c6f41edf3dc56a10a228fee0f1a (diff) | |
download | qt3-ce82c9945392502505d96b5a4bb0cfeaed3d834a.tar.gz qt3-ce82c9945392502505d96b5a4bb0cfeaed3d834a.zip |
Fix qcstring format warnings
Related to Bug 637
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/qcstring.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tools/qcstring.h b/src/tools/qcstring.h index abdc772..372ae80 100644 --- a/src/tools/qcstring.h +++ b/src/tools/qcstring.h @@ -164,7 +164,11 @@ public: QCString copy() const; - QCString &sprintf( const char *format, ... ); + QCString &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; |