From 1920129d7184d86603e15667989d69ee0e40d07d Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 13 Jul 2018 16:05:35 +0200 Subject: [PATCH] Remove clang warning --- unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h index fbbc87661..dbcc9d8ac 100644 --- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h +++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h @@ -646,6 +646,7 @@ struct igammac_cf_impl { case DERIVATIVE: return ans * dax_da + dans_da * ax; case SAMPLE_DERIVATIVE: + default: // this is needed to suppress clang warning return -(dans_da + ans * dlogax_da) * x; } } @@ -707,6 +708,7 @@ struct igamma_series_impl { case DERIVATIVE: return ans * dax_da + dans_da * ax; case SAMPLE_DERIVATIVE: + default: // this is needed to suppress clang warning return -(dans_da + ans * dlogax_da) * x / a; } }