From bc4e9e432a35594a9512d501dd520cf412eeda6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Tue, 16 May 2023 15:32:23 +0200 Subject: Fix unused variable 'FakeErrnoForThrow' [-Wunused-const-variable] Amends ba05af82d3d8b7cbc6e22f93cbf1e3d1575afefe. Change-Id: I979d43af3e937edd69b75c9138f1b24ebdc8fac3 Reviewed-by: Thiago Macieira --- src/corelib/io/qprocess_unix.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/corelib/io/qprocess_unix.cpp b/src/corelib/io/qprocess_unix.cpp index 5bdfc0e208..2de5cded52 100644 --- a/src/corelib/io/qprocess_unix.cpp +++ b/src/corelib/io/qprocess_unix.cpp @@ -47,16 +47,6 @@ QT_BEGIN_NAMESPACE -// we need an errno number to use to indicate the child process modifier threw, -// something the regular operations shouldn't set. -static constexpr int FakeErrnoForThrow = -#ifdef ECANCELED - ECANCELED -#else - ESHUTDOWN -#endif - ; - using namespace Qt::StringLiterals; namespace { @@ -576,6 +566,16 @@ void QProcessPrivate::startProcess() ::fcntl(stderrChannel.pipe[0], F_SETFL, ::fcntl(stderrChannel.pipe[0], F_GETFL) | O_NONBLOCK); } +// we need an errno number to use to indicate the child process modifier threw, +// something the regular operations shouldn't set. +static constexpr int FakeErrnoForThrow = +#ifdef ECANCELED + ECANCELED +#else + ESHUTDOWN +#endif + ; + static const char *callChildProcessModifier(const QProcessPrivate::UnixExtras *unixExtras) noexcept { QT_TRY { -- cgit v1.2.1