From 189e192c83785cba54e17df0eb1740cf1050ba31 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Thu, 11 Apr 2019 12:13:30 +0200 Subject: [PATCH] [shellprocess] Reduce warnings - The old-style cast still causes a warning, but do the more idiomatic (void) rather then casting to (void*) --- src/modules/shellprocess/Tests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/shellprocess/Tests.cpp b/src/modules/shellprocess/Tests.cpp index 068aefda5..4928e28dd 100644 --- a/src/modules/shellprocess/Tests.cpp +++ b/src/modules/shellprocess/Tests.cpp @@ -176,9 +176,9 @@ script: )" ) ).toMap().value( "script" ); if ( !Calamares::JobQueue::instance() ) - (void *)new Calamares::JobQueue( nullptr ); + (void)new Calamares::JobQueue( nullptr ); if ( !Calamares::Settings::instance() ) - (void *)new Calamares::Settings( QString(), true ); + (void)new Calamares::Settings( QString(), true ); Calamares::GlobalStorage* gs = Calamares::JobQueue::instance()->globalStorage(); QVERIFY( gs != nullptr );