cmake CXX_HAS_WFORMAT_2 examples

robotology/yarp cmake/YarpSystemCheck.cmake :265

check_cxx_compiler_flag("-Wformat=2" CXX_HAS_WFORMAT_2)