diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2025-11-27 07:24:33 +0100 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2025-11-28 17:59:40 +0100 |
| commit | e584f9f36e7f10a331d22670a0641601b48d2956 (patch) | |
| tree | 71c106911b5bb6121fa1f7c49f2eae32a8ea0d14 /tests/auto/tools | |
| parent | 949bebaec69d908ca842e8ef7d3e3800d8c2f7b5 (diff) | |
GCC warns if a format string is statically known to be empty. Since we
mark up printf-style QTest::addRow() using the resp. attribute, GCC
warns here, too:
tst_q23_expected.cpp:23:19: warning: zero-length gnu_printf format string [-Wformat-zero-length]
23 | QTest::addRow("") << false;
| ^~
Instead of using the old newRow(), add some content to the data tag
instead.
It cannot be left unmentioned that this test doesn't test ... very
much. I hope we don't use this component in production code, yet...
Amends 4e9f4d5d02e29b4522540b8f9b9b01b7e57a6b54.
Pick-to: 6.10
Change-Id: I50ebb074997e034506c6602ff7602ad392b745be
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Tim Blechmann <tim.blechmann@qt.io>
Diffstat (limited to 'tests/auto/tools')
0 files changed, 0 insertions, 0 deletions
