Fix unused variable 'FakeErrnoForThrow' [-Wunused-const-variable]
Amends ba05af82d3d8b7cbc6e22f93cbf1e3d1575afefe. Change-Id: I979d43af3e937edd69b75c9138f1b24ebdc8fac3 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
9cef9df822
commit
bc4e9e432a
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user