ocv_warnings_disable macro just remove key from CMAKE_CXX_FLAGS. -Wunused-parameter is not relevant for cl.exe. We do not set warning level for WinRT, so /wd is the only solution.