[Core] Fix a few more warnings [c2120]