Flite: fix static analyser warnings


* be explicit about int/float/double types and use explicit type
conversions where necessary
* make functions static if they do not access the struct
* use `auto` for static casted value

Pick-to: 6.8 6.9 6.10
Change-Id: I6cc22b31823191139ae2fb14bc35e736d8312edb
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
commitc06e6b8e21293a75202eb15900956021b07062ba
parent8ac00a1cced96cb2c11494aa932e6cdb2f72f946
authorTim Blechmann <tim@klingt.org>
committerTim Blechmann <tim@klingt.org>
commit timeThu, 19 Jun 2025 08:22:13 +0800