I still get the Windows.h warnings after upgrading to CVI 2017 and I don't want to disable those warngins for the entire project, so I 'simply' do:
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wbad-function-cast"
#pragma clang diagnostic ignored "-Wused-but-marked-unused"
#include <windows.h>
#pragma clang diagnostic pop