Browse Source

libobs: Fix windows warnings with C library macro

The macro INFINITY apparently will trigger a warning with microsoft's
compiler despite being a C standard library macro.
jp9000 11 years ago
parent
commit
e3e79dcdc5
1 changed files with 7 additions and 0 deletions
  1. 7 0
      libobs/obs-audio-controls.c

+ 7 - 0
libobs/obs-audio-controls.c

@@ -24,6 +24,13 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #include "obs-audio-controls.h"
 
+/* These are pointless warnings generated not by our code, but by a standard
+ * library macro, INFINITY */
+#ifdef _MSC_VER
+#pragma warning(disable : 4056)
+#pragma warning(disable : 4756)
+#endif
+
 typedef float (*obs_fader_conversion_t)(const float val);
 
 struct obs_fader {