Fix no return statement in non-void function
Fixes:
[822/829] Building CXX object tests/CMakeFiles/kioworkertest.dir/kioworkertest.cpp.obj
FAILED: tests/CMakeFiles/kioworkertest.dir/kioworkertest.cpp.obj
C:\CraftQt6Dev\mingw64\bin\g++.exe -DKCOREADDONS_LIB -DKF_DEPRECATED_WARNINGS_SINCE=0x60000 -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x5f000 -DKIOCORE_DEPRECATED_WARNINGS_SINCE=0x0 -DKIOCORE_DISABLE_DEPRECATED_BEFORE_AND_AT=0x0 -DKIOFILEWIDGETS_DEPRECATED_WARNINGS_SINCE=0x0 -DKIOFILEWIDGETS_DISABLE_DEPRECATED_BEFORE_AND_AT=0x0 -DKIOGUI_DEPRECATED_WARNINGS_SINCE=0x0 -DKIOGUI_DISABLE_DEPRECATED_BEFORE_AND_AT=0x0 -DKIOWIDGETS_DEPRECATED_WARNINGS_SINCE=0x0 -DKIOWIDGETS_DISABLE_DEPRECATED_BEFORE_AND_AT=0x0 -DMINGW_HAS_SECURE_API=1 -DNOMINMAX -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_DEPRECATED_WARNINGS_SINCE=0x70000 -DQT_DISABLE_DEPRECATED_BEFORE=0x60400 -DQT_GUI_LIB -DQT_NEEDS_QMAIN -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_FOREACH -DQT_NO_KEYWORDS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_URL_CAST_FROM_STRING -DQT_TESTCASE_BUILDDIR=\"C:/_/d1e9cef6/build/tests\" -DQT_TESTCASE_SOURCEDIR=\"C:/_/8ba458a3/kio/tests\" -DQT_TESTLIB_LIB -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DQT_XML_LIB -DTRANSLATION_DOMAIN=\"kio6\" -DUNICODE -DWIN32 -DWIN32_LEAN_AND_MEAN -DWIN64 -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D_USE_MATH_DEFINES -D_WIN64 -IC:/_/d1e9cef6/build/tests -IC:/_/8ba458a3/kio/tests -IC:/_/d1e9cef6/build/tests/kioworkertest_autogen/include -IC:/_/d1e9cef6/build/src/core/.. -IC:/_/d1e9cef6/build/src/core -IC:/_/8ba458a3/kio/src/core -IC:/_/d1e9cef6/build/src/gui -IC:/_/8ba458a3/kio/src/gui -IC:/_/d1e9cef6/build/src/widgets -IC:/_/8ba458a3/kio/src/widgets -IC:/_/d1e9cef6/build/src/filewidgets -IC:/_/8ba458a3/kio/src/filewidgets -isystem C:/CraftQt6Dev/include/KF6/KCoreAddons -isystem C:/CraftQt6Dev/include/QtCore -isystem C:/CraftQt6Dev/include -isystem C:/CraftQt6Dev/mkspecs/win32-g++ -isystem C:/CraftQt6Dev/include/QtNetwork -isystem C:/CraftQt6Dev/include/QtDBus -isystem C:/CraftQt6Dev/include/KF6/KConfig -isystem C:/CraftQt6Dev/include/KF6/KConfigCore -isystem C:/CraftQt6Dev/include/KF6/KService -isystem C:/CraftQt6Dev/include/QtGui -isystem C:/CraftQt6Dev/include/KF6/KJobWidgets -isystem C:/CraftQt6Dev/include/QtWidgets -isystem C:/CraftQt6Dev/include/KF6/Solid -isystem C:/CraftQt6Dev/include/KF6/KCompletion -isystem C:/CraftQt6Dev/include/KF6/KWidgetsAddons -isystem C:/CraftQt6Dev/include/KF6/KBookmarks -isystem C:/CraftQt6Dev/include/QtXml -isystem C:/CraftQt6Dev/include/KF6/KItemViews -isystem C:/CraftQt6Dev/include/QtTest -isystem C:/CraftQt6Dev/include/KF6/KIconThemes -fdiagnostics-color=always -fno-operator-names -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Werror=init-self -Werror=undef -Wvla -Wdate-time -Wsuggest-override -Wlogical-op -pedantic -Wzero-as-null-pointer-constant -Wmissing-include-dirs -fdiagnostics-color=always -O2 -g -DNDEBUG -fvisibility=hidden -fno-keep-inline-dllexport -std=c++17 -MD -MT tests/CMakeFiles/kioworkertest.dir/kioworkertest.cpp.obj -MF tests\CMakeFiles\kioworkertest.dir\kioworkertest.cpp.obj.d -o tests/CMakeFiles/kioworkertest.dir/kioworkertest.cpp.obj -c C:/_/8ba458a3/kio/tests/kioworkertest.cpp
C:/_/8ba458a3/kio/tests/kioworkertest.cpp: In function 'int qMain(int, char**)':
C:/_/8ba458a3/kio/tests/kioworkertest.cpp:546:1: error: control reaches end of non-void function [-Werror=return-type]
546 | }
| ^
cc1plus.exe: some warnings being treated as errors