Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix build error with non-const MINSIGSTKSZ.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 18 Feb 2021 09:05:14 +0000 (10:05 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 18 Feb 2021 09:09:51 +0000 (10:09 +0100)
See https://github.com/catchorg/Catch2/issues/2178.

src/include/catch.hpp

index 6c1756a..170f46c 100644 (file)
@@ -10732,7 +10732,8 @@ namespace Catch {
 
     // 32kb for the alternate stack seems to be sufficient. However, this value
     // is experimentally determined, so that's not guaranteed.
-    static constexpr std::size_t sigStackSize = 32768 >= MINSIGSTKSZ ? 32768 : MINSIGSTKSZ;
+    // Update: MINSIGSTKSZ is not const anymore with recent glibc
+    static constexpr std::size_t sigStackSize = 32768;
 
     static SignalDefs signalDefs[] = {
         { SIGINT,  "SIGINT - Terminal interrupt signal" },