Remove constexpr
authorJochen Sprickerhof <jspricke@debian.org>
Thu, 13 Oct 2022 17:52:57 +0000 (19:52 +0200)
committerJochen Sprickerhof <jspricke@debian.org>
Thu, 13 Oct 2022 18:56:25 +0000 (19:56 +0100)
Fixes:

error: constexpr variable 'kHostAltSigStackSize' must be initialized by a constant expression

Gbp-Pq: Name 0016-Remove-constexpr.patch

runtime/thread_linux.cc

index 3ed427677e9354a5b4be10f408a017907de0ee46..e057de95d1485cd7083df392a47f33e4de464a0a 100644 (file)
@@ -33,7 +33,7 @@ static void SigAltStack(stack_t* new_stack, stack_t* old_stack) {
 // handler or do a stack unwind, this is too small.  We allocate 32K
 // instead of the minimum signal stack size.
 // TODO: We shouldn't do logging (with locks) in signal handlers.
-static constexpr int kHostAltSigStackSize =
+static int kHostAltSigStackSize =
     32 * KB < MINSIGSTKSZ ? MINSIGSTKSZ : 32 * KB;
 
 void Thread::SetUpAlternateSignalStack() {