From ab72b08d23caed40afd368376b9d0fbce4e1ac7e Mon Sep 17 00:00:00 2001
From: Martin Reinecke <martin@mpa-garching.mpg.de>
Date: Fri, 9 Aug 2019 09:24:07 +0200
Subject: [PATCH] work around (unhustified) compiler warning)

---
 pocketfft_hdronly.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pocketfft_hdronly.h b/pocketfft_hdronly.h
index c623a90..95e34a9 100644
--- a/pocketfft_hdronly.h
+++ b/pocketfft_hdronly.h
@@ -353,6 +353,7 @@ template <typename T> T sinpi(T a)
     case 3: case -1:
       return T(-1.) - cosm1pi0(t);
     }
+  throw runtime_error("cannot happen");
   }
 
 template <typename T> T cospi(T a)
@@ -373,6 +374,7 @@ template <typename T> T cospi(T a)
     case 3: case -1:
       return sinpi0(t);
     }
+  throw runtime_error("cannot happen");
   }
 
 inline long double cospi(long double a)
-- 
GitLab