Resolve integer-truncation warnings
Resolve unused-function warnings