Commit e3151f2d authored by David Reid's avatar David Reid

Silence an unreachable code warning with MSVC.

parent abb81fe9
...@@ -20,6 +20,12 @@ orbiting effect. Terminate the program with Ctrl+C. ...@@ -20,6 +20,12 @@ orbiting effect. Terminate the program with Ctrl+C.
#include <stdio.h> #include <stdio.h>
#include <math.h> /* For sinf() and cosf() */ #include <math.h> /* For sinf() and cosf() */
/* Silence warning about unreachable code for MSVC. */
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable: 4702)
#endif
int main(int argc, char** argv) int main(int argc, char** argv)
{ {
ma_result result; ma_result result;
...@@ -74,3 +80,7 @@ int main(int argc, char** argv) ...@@ -74,3 +80,7 @@ int main(int argc, char** argv)
return 0; return 0;
} }
#ifdef _MSC_VER
#pragma warning(pop)
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment