fix gcc compile warning