MP4v2

warning.h
1#ifndef MP4V2_PLATFORM_WARNING_H
2#define MP4V2_PLATFORM_WARNING_H
3
5
6// TODO-KB: clean code to avoid disabling warnings
7
8#if defined( __GNUC__ ) && ( __GNUC__ >= 4 ) && ( __GNUC_MINOR__ >= 2 )
9# pragma GCC diagnostic ignored "-Wwrite-strings"
10#elif defined( _MSC_VER )
11# pragma warning( disable: 4244 )
12# pragma warning( disable: 4251 )
13# pragma warning( disable: 4800 )
14# pragma warning( disable: 4996 )
15#endif
16
18
19// this macro is used to mark printf-style functions for GCC to examine
20// the format string and arguments and issue warnings if needed
21
22#if defined( __GNUC__ )
23# define MP4V2_WFORMAT_PRINTF(i,j) __attribute__((format(__printf__,i,j)))
24#else
25# define MP4V2_WFORMAT_PRINTF(i,j)
26#endif
27
29
30#endif // MP4V2_PLATFORM_WARNING_H