Resolved the compiling warnings.