Eliminate the warning in compiling cpp file