[No reviewer] Update cpp-common and fix warning in main