| 1 |
#include <QtCore/QString> |
| 2 |
|
| 3 |
void simple_printf(const char* ...) |
| 4 |
{ |
| 5 |
} |
| 6 |
|
| 7 |
|
| 8 |
void test() |
| 9 |
{ |
| 10 |
QString s; |
| 11 |
printf("%s", s); // Warn |
| 12 |
simple_printf("%s", s); // Warn |
| 13 |
const char *foo = "f"; |
| 14 |
printf("%s", foo); |
| 15 |
|
| 16 |
QByteArray b; |
| 17 |
printf("%s", b); // Warn |
| 18 |
} |