- modules\audio_device\win\audio_device_core_win.cc
- vs 构建
error C2362: initialization of ‘’ is skipped by 'goto ’
- 官方解答
- When compiled by using /Za, a jump to the label prevents the identifier from being initialized.
You can only jump past a declaration with an initializer if the declaration is enclosed in a block that isn’t entered, or if the variable has already been initialized.
The following sample generates C2362:
bash
// C2362.cpp
// compile with: /Za
int main() {