diff options
author | Lars Schmertmann <Lars.Schmertmann@governikus.de> | 2020-06-27 12:54:18 +0200 |
---|---|---|
committer | Lars Schmertmann <Lars.Schmertmann@governikus.de> | 2020-06-28 17:09:06 +0200 |
commit | f3d9409a8afe0ba805060aaebf5389c866807e72 (patch) | |
tree | 7f882a3bcc39b88b0a2c008156c50fea9a292c22 /examples/multimedia/spectrum/app/tonegenerator.cpp | |
parent | 1818334beafcf8668b30b8ee63031f871a0c8d03 (diff) |
Add ; to Q_UNUSED
This is required to remove the ; from the macro with Qt 6.
Task-number: QTBUG-82978
Change-Id: I5466906d759a7cc046d77a21e2c647a4b938d070
Reviewed-by: Val Doroshchuk <valentyn.doroshchuk@qt.io>
Diffstat (limited to 'examples/multimedia/spectrum/app/tonegenerator.cpp')
-rw-r--r-- | examples/multimedia/spectrum/app/tonegenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/multimedia/spectrum/app/tonegenerator.cpp b/examples/multimedia/spectrum/app/tonegenerator.cpp index 1718d1c69..2e549ab4f 100644 --- a/examples/multimedia/spectrum/app/tonegenerator.cpp +++ b/examples/multimedia/spectrum/app/tonegenerator.cpp @@ -65,7 +65,7 @@ void generateTone(const SweptTone &tone, const QAudioFormat &format, QByteArray const int numSamples = buffer.size() / sampleBytes; Q_ASSERT(length % sampleBytes == 0); - Q_UNUSED(sampleBytes) // suppress warning in release builds + Q_UNUSED(sampleBytes); // suppress warning in release builds unsigned char *ptr = reinterpret_cast<unsigned char *>(buffer.data()); |