Browse Source

Fixed unreachable code warning.

pull/908/head
Joao Matos 8 years ago
parent
commit
27efa2ec87
  1. 7
      src/Parser/ParserOptions.cs

7
src/Parser/ParserOptions.cs

@ -21,6 +21,10 @@ namespace CppSharp.Parser
public void SetupMSVC() public void SetupMSVC()
{ {
VisualStudioVersion vsVersion = VisualStudioVersion.Latest; VisualStudioVersion vsVersion = VisualStudioVersion.Latest;
// Silence "warning CS0162: Unreachable code detected"
#pragma warning disable 162
switch (BuildConfig.Choice) switch (BuildConfig.Choice)
{ {
case "vs2012": case "vs2012":
@ -35,6 +39,9 @@ namespace CppSharp.Parser
case "vs2017": case "vs2017":
vsVersion = VisualStudioVersion.VS2017; vsVersion = VisualStudioVersion.VS2017;
break; break;
#pragma warning restore 162
} }
SetupMSVC(vsVersion); SetupMSVC(vsVersion);
} }

Loading…
Cancel
Save