block unimportant warnings in core.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@642 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2006-02-21 17:55:38 +00:00
parent 59d9fa452c
commit fea14e6d90
4 changed files with 63 additions and 33 deletions
+38 -31
View File
@@ -39,10 +39,15 @@ extern "C" {
#endif
#ifdef _MSC_VER
// C4200 Non standard extension C zero sized array
// C4204: nonstandard extension used : non-constant aggregate initializer
/* disable the following warnings
* C4152: non standard extension, function/data ptr conversion in expression
* C4054: A function pointer is cast (possibly incorrectly) to a data pointer.
* C4100: The formal parameter is not referenced in the body of the function. The unreferenced parameter is ignored.
* C4142: A type is redefined in a manner that has no effect on the generated code.
* C4200: Non standard extension C zero sized array
* C4204: nonstandard extension used : non-constant aggregate initializer
*/
#pragma warning(disable:4152 4054 4100 4142 4200 4204)
#endif
#if (_MSC_VER >= 1400) // VC8+
#ifndef _CRT_SECURE_NO_DEPRECATE
@@ -53,6 +58,36 @@ extern "C" {
#endif
#endif // VC8+
#if _MSC_VER < 1300
#ifndef __FUNCTION__
#define __FUNCTION__ ""
#endif
#endif
#ifndef uint32_t
typedef unsigned __int8 uint8_t;
typedef unsigned __int16 uint16_t;
typedef unsigned __int32 uint32_t;
typedef unsigned __int64 uint64_t;
typedef __int8 int8_t;
typedef __int16 int16_t;
typedef __int32 int32_t;
typedef __int64 int64_t;
typedef unsigned long in_addr_t;
#endif
#else
#include <sys/types.h>
#ifndef getpid
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include <time.h>
#endif
#endif // _MSC_VER
#ifdef WIN32
#if defined(SWITCH_CORE_DECLARE_STATIC)
#define SWITCH_DECLARE(type) type __stdcall
@@ -80,34 +115,6 @@ extern "C" {
#define SWITCH_DECLARE_NONSTD(type) type
#define SWITCH_MOD_DECLARE(type) type
#define SWITCH_DECLARE_DATA
#ifndef getpid
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include <time.h>
#endif
#endif
#ifndef uint32_t
#ifdef WIN32
typedef unsigned __int8 uint8_t;
typedef unsigned __int16 uint16_t;
typedef unsigned __int32 uint32_t;
typedef unsigned __int64 uint64_t;
typedef __int8 int8_t;
typedef __int16 int16_t;
typedef __int32 int32_t;
typedef __int64 int64_t;
typedef unsigned long in_addr_t;
#else
#include <sys/types.h>
#endif
#endif
#if defined(_MSC_VER) && _MSC_VER < 1300
#ifndef __FUNCTION__
#define __FUNCTION__ ""
#endif
#endif
#ifdef DOXYGEN