summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2023-05-16 15:32:23 +0200
committerThiago Macieira <thiago.macieira@intel.com>2023-05-16 21:54:40 +0000
commitbc4e9e432a35594a9512d501dd520cf412eeda6b (patch)
tree0e644e2b0850fe46f6e34b44ffd74b08c48378d0
parent9cef9df822d887e8ca4909486f1ccc8b7e63eec4 (diff)
downloadqtbase-bc4e9e432a35594a9512d501dd520cf412eeda6b.tar.gz
Fix unused variable 'FakeErrnoForThrow' [-Wunused-const-variable]
Amends ba05af82d3d8b7cbc6e22f93cbf1e3d1575afefe. Change-Id: I979d43af3e937edd69b75c9138f1b24ebdc8fac3 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
-rw-r--r--src/corelib/io/qprocess_unix.cpp20
1 files 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 {