Remove clang warning

This commit is contained in:
Gael Guennebaud 2018-07-13 16:05:35 +02:00
parent 195c9c054b
commit 1920129d71

View File

@ -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;
}
}