[Core] Fix warning reported by travis (c2547)