aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/src
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2018-07-13 16:05:35 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2018-07-13 16:05:35 +0200
commit1920129d7184d86603e15667989d69ee0e40d07d (patch)
tree0556ea47c1e624c94f54d4bf6ae3649680dcebb8 /unsupported/Eigen/src
parent195c9c054b6beab9d8bf0c71e0556b69c5e61548 (diff)
Remove clang warning
Diffstat (limited to 'unsupported/Eigen/src')
-rw-r--r--unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h2
1 files changed, 2 insertions, 0 deletions
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;
}
}