From 3df0878e43ee423df6c010eb754242ac0d4e4592 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Thu, 27 Feb 2020 23:18:28 +0100 Subject: [PATCH] [initramfs] Warnings-- Initializing the JobQuene (and hence Global Storage) and the System instance is a bit odd, avoid unused-variable warning with an ugly cast instead. --- src/modules/initramfs/Tests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/initramfs/Tests.cpp b/src/modules/initramfs/Tests.cpp index 04910f724..2a236e64b 100644 --- a/src/modules/initramfs/Tests.cpp +++ b/src/modules/initramfs/Tests.cpp @@ -46,7 +46,7 @@ InitramfsTests::initTestCase() { Logger::setupLogLevel( Logger::LOGDEBUG ); - auto* j = new Calamares::JobQueue(); + (void) new Calamares::JobQueue(); (void) new CalamaresUtils::System( true ); }