VS2015: ignore C4244 warning in opus_compare.c
authorRicardo Constantino <wiiaboo@gmail.com>
Mon, 27 Feb 2017 14:56:06 +0000 (14:56 +0000)
committerMark Harris <mark.hsj@gmail.com>
Fri, 3 Mar 2017 02:38:27 +0000 (18:38 -0800)
opus_compare.c defines the bitstream so we avoid changing it by
ignoring the non-breaking warning instead of changing the file.

Signed-off-by: Mark Harris <mark.hsj@gmail.com>
Resolves https://github.com/xiph/opus/issues/21

win32/VS2015/opus.vcxproj

index 310198a..a128f5b 100644 (file)
     <ClCompile Include="..\..\src\mlp.c" />
     <ClCompile Include="..\..\src\mlp_data.c" />
     <ClCompile Include="..\..\src\opus.c" />
-    <ClCompile Include="..\..\src\opus_compare.c" />
+    <ClCompile Include="..\..\src\opus_compare.c">
+      <DisableSpecificWarnings>4244;%(DisableSpecificWarnings)</DisableSpecificWarnings>
+    </ClCompile>
     <ClCompile Include="..\..\src\opus_decoder.c" />
     <ClCompile Include="..\..\src\opus_encoder.c" />
     <ClCompile Include="..\..\src\opus_multistream.c" />