Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

changed: [win32] disable warnings that ffmpeg always emit when includ…

…ing it's headers
  • Loading branch information...
commit 3b84d6b9899d7992f4ae4390a55a1b353d7903b9 1 parent cf4e74a
@elupus elupus authored
Showing with 19 additions and 0 deletions.
  1. +9 −0 lib/DllAvUtil.h
  2. +10 −0 xbmc/cores/dvdplayer/DVDDemuxers/DVDDemux.h
View
9 lib/DllAvUtil.h
@@ -27,6 +27,11 @@
#include "DynamicDll.h"
#include "utils/log.h"
+#ifndef __GNUC__
+#pragma warning(push)
+#pragma warning(disable:4244)
+#endif
+
extern "C" {
#if (defined USE_EXTERNAL_FFMPEG)
#if (defined HAVE_LIBAVUTIL_AVUTIL_H)
@@ -57,6 +62,10 @@ extern "C" {
#endif
}
+#ifndef __GNUC__
+#pragma warning(pop)
+#endif
+
// calback used for logging
void ff_avutil_log(void* ptr, int level, const char* format, va_list va);
View
10 xbmc/cores/dvdplayer/DVDDemuxers/DVDDemux.h
@@ -26,6 +26,11 @@
class CDVDInputStream;
+#ifndef __GNUC__
+#pragma warning(push)
+#pragma warning(disable:4244)
+#endif
+
#if (defined HAVE_CONFIG_H) && (!defined WIN32)
#include "config.h"
#endif
@@ -45,6 +50,11 @@ extern "C" {
#endif
}
#endif
+
+#ifndef __GNUC__
+#pragma warning(pop)
+#endif
+
enum AVDiscard;
enum StreamType
Please sign in to comment.
Something went wrong with that request. Please try again.