From f3d9409a8afe0ba805060aaebf5389c866807e72 Mon Sep 17 00:00:00 2001 From: Lars Schmertmann Date: Sat, 27 Jun 2020 12:54:18 +0200 Subject: 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 --- examples/multimedia/spectrum/app/tonegenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/multimedia/spectrum/app/tonegenerator.cpp') 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(buffer.data()); -- cgit v1.2.3