fix warnings in trsolve