Minimal reproducible example:
#pragma warning(disable : 4002)
// C4002b.cpp
// compile with: /W1 /WX
#define F(x, y)
int main()
{
F(2, , , , , , 3, , , , , , ) // C4002
// Try the following line instead:
// F(2,3)
return 0;
}
Tested with MSVC 2017, 2022.
The problem is that sccache without direct mode doesn't remove /WX flag when adding /EP one.