Fix fused() all controll paths should return a value.

closes https://github.com/official-stockfish/Stockfish/pull/5973

No functional change
This commit is contained in:
mstembera
2025-04-18 14:32:26 +02:00
committed by Disservin
parent 2af64d581b
commit 8d2eef2b1e
+4
View File
@@ -194,6 +194,10 @@ fused(const typename VecWrapper::type& in, const T& operand, const Ts&... operan
return fused<VecWrapper, ops...>(VecWrapper::add(in, operand), operands...);
case Sub :
return fused<VecWrapper, ops...>(VecWrapper::sub(in, operand), operands...);
default :
static_assert(update_op == Add || update_op == Sub,
"Only Add and Sub are currently supported.");
return typename VecWrapper::type();
}
}