Changeset - r12741:8667e369bdf5
[Not reviewed]
master
0 2 0
rubidium - 15 years ago 2009-08-18 22:51:43
rubidium@openttd.org
(svn r17217) -Fix (r17216): silence some warnings for the more exotic GCC-alikes
2 files changed with 17 insertions and 17 deletions:
0 comments (0 inline, 0 general)
src/3rdparty/minilzo/lzodefs.h
Show inline comments
 
@@ -1327,15 +1327,15 @@ extern "C" {
 
#else
 
#  define LZO_LIBC_DEFAULT      1
 
#  define LZO_INFO_LIBC         "default"
 
#endif
 
#endif
 
#if !defined(__lzo_gnuc_extension__)
 
#if (LZO_CC_GNUC >= 0x020800ul)
 
#if defined(LZO_CC_GNUC) && (LZO_CC_GNUC >= 0x020800ul)
 
#  define __lzo_gnuc_extension__    __extension__
 
#elif (LZO_CC_LLVM || LZO_CC_PATHSCALE)
 
#elif defined(LZO_CC_LLVM) || defined(LZO_CC_PATHSCALE)
 
#  define __lzo_gnuc_extension__    __extension__
 
#else
 
#  define __lzo_gnuc_extension__
 
#endif
 
#endif
 
#if !defined(__lzo_ua_volatile)
 
@@ -1351,29 +1351,29 @@ extern "C" {
 
#endif
 
#endif
 
#if defined(__lzo_alignof)
 
#  define __lzo_HAVE_alignof 1
 
#endif
 
#if !defined(__lzo_constructor)
 
#if (LZO_CC_GNUC >= 0x030400ul)
 
#if defined(LZO_CC_GNUC) && (LZO_CC_GNUC >= 0x030400ul)
 
#  define __lzo_constructor     __attribute__((__constructor__,__used__))
 
#elif (LZO_CC_GNUC >= 0x020700ul)
 
#elif defined(LZO_CC_GNUC) && (LZO_CC_GNUC >= 0x020700ul)
 
#  define __lzo_constructor     __attribute__((__constructor__))
 
#elif (LZO_CC_LLVM || LZO_CC_PATHSCALE)
 
#elif defined(LZO_CC_LLVM) || defined(LZO_CC_PATHSCALE)
 
#  define __lzo_constructor     __attribute__((__constructor__))
 
#endif
 
#endif
 
#if defined(__lzo_constructor)
 
#  define __lzo_HAVE_constructor 1
 
#endif
 
#if !defined(__lzo_destructor)
 
#if (LZO_CC_GNUC >= 0x030400ul)
 
#if defined(LZO_CC_GNUC) && (LZO_CC_GNUC >= 0x030400ul)
 
#  define __lzo_destructor      __attribute__((__destructor__,__used__))
 
#elif (LZO_CC_GNUC >= 0x020700ul)
 
#elif defined(LZO_CC_GNUC) && (LZO_CC_GNUC >= 0x020700ul)
 
#  define __lzo_destructor      __attribute__((__destructor__))
 
#elif (LZO_CC_LLVM || LZO_CC_PATHSCALE)
 
#elif defined(LZO_CC_LLVM) || defined(LZO_CC_PATHSCALE)
 
#  define __lzo_destructor      __attribute__((__destructor__))
 
#endif
 
#endif
 
#if defined(__lzo_destructor)
 
#  define __lzo_HAVE_destructor 1
 
#endif
 
@@ -1403,13 +1403,13 @@ extern "C" {
 
#if defined(__lzo_inline)
 
#  define __lzo_HAVE_inline 1
 
#else
 
#  define __lzo_inline
 
#endif
 
#if !defined(__lzo_forceinline)
 
#if (LZO_CC_GNUC >= 0x030200ul)
 
#if defined(LZO_CC_GNUC) && (LZO_CC_GNUC >= 0x030200ul)
 
#  define __lzo_forceinline     __inline__ __attribute__((__always_inline__))
 
#elif defined(LZO_CC_INTELC) && (__INTEL_COMPILER >= 450) && defined(LZO_CC_SYNTAX_MSC)
 
#  define __lzo_forceinline     __forceinline
 
#elif defined(LZO_CC_INTELC) && (__INTEL_COMPILER >= 800) && defined(LZO_CC_SYNTAX_GNUC)
 
#  define __lzo_forceinline     __inline__ __attribute__((__always_inline__))
 
#elif defined(LZO_CC_LLVM) || defined(LZO_CC_PATHSCALE)
 
@@ -1423,23 +1423,23 @@ extern "C" {
 
#else
 
#  define __lzo_forceinline
 
#endif
 
#if !defined(__lzo_noinline)
 
#if 1 && defined(LZO_ARCH_I386) && (LZO_CC_GNUC >= 0x040000ul) && (LZO_CC_GNUC < 0x040003ul)
 
#  define __lzo_noinline        __attribute__((__noinline__,__used__))
 
#elif (LZO_CC_GNUC >= 0x030200ul)
 
#elif defined(LZO_CC_GNUC) && (LZO_CC_GNUC >= 0x030200ul)
 
#  define __lzo_noinline        __attribute__((__noinline__))
 
#elif defined(LZO_CC_INTELC) && (__INTEL_COMPILER >= 600) && defined(LZO_CC_SYNTAX_MSC)
 
#  define __lzo_noinline        __declspec(noinline)
 
#elif defined(LZO_CC_INTELC) && (__INTEL_COMPILER >= 800) && defined(LZO_CC_SYNTAX_GNUC)
 
#  define __lzo_noinline        __attribute__((__noinline__))
 
#elif defined(LZO_CC_LLVM) || defined(LZO_CC_PATHSCALE)
 
#  define __lzo_noinline        __attribute__((__noinline__))
 
#elif defined(LZO_CC_MSC) && (_MSC_VER >= 1300)
 
#  define __lzo_noinline        __declspec(noinline)
 
#elif defined(LZO_CC_MWERKS) && (__MWERKS__ >= 0x3200) && (defined(LZO_OS_WIN32) || (defined(LZO_OS_WIN64))
 
#elif defined(LZO_CC_MWERKS) && (__MWERKS__ >= 0x3200) && (defined(LZO_OS_WIN32) || (defined(LZO_OS_WIN64)))
 
#  if defined(__cplusplus)
 
#  else
 
#    define __lzo_noinline      __declspec(noinline)
 
#  endif
 
#endif
 
#endif
 
@@ -1449,13 +1449,13 @@ extern "C" {
 
#  define __lzo_noinline
 
#endif
 
#if (defined(__lzo_HAVE_forceinline) || defined(__lzo_HAVE_noinline)) && !defined(__lzo_HAVE_inline)
 
#  error "this should not happen"
 
#endif
 
#if !defined(__lzo_noreturn)
 
#if (LZO_CC_GNUC >= 0x020700ul)
 
#if defined(LZO_CC_GNUC) && (LZO_CC_GNUC >= 0x020700ul)
 
#  define __lzo_noreturn        __attribute__((__noreturn__))
 
#elif defined(LZO_CC_INTELC) && (__INTEL_COMPILER >= 450) && defined(LZO_CC_SYNTAX_MSC)
 
#  define __lzo_noreturn        __declspec(noreturn)
 
#elif defined(LZO_CC_INTELC) && (__INTEL_COMPILER >= 600) && defined(LZO_CC_SYNTAX_GNUC)
 
#  define __lzo_noreturn        __attribute__((__noreturn__))
 
#elif defined(LZO_CC_LLVM) || defined(LZO_CC_PATHSCALE)
 
@@ -1467,13 +1467,13 @@ extern "C" {
 
#if defined(__lzo_noreturn)
 
#  define __lzo_HAVE_noreturn 1
 
#else
 
#  define __lzo_noreturn
 
#endif
 
#if !defined(__lzo_nothrow)
 
#if (LZO_CC_GNUC >= 0x030300ul)
 
#if defined(LZO_CC_GNUC) && (LZO_CC_GNUC >= 0x030300ul)
 
#  define __lzo_nothrow         __attribute__((__nothrow__))
 
#elif defined(LZO_CC_INTELC) && (__INTEL_COMPILER >= 450) && defined(LZO_CC_SYNTAX_MSC) && defined(__cplusplus)
 
#  define __lzo_nothrow         __declspec(nothrow)
 
#elif defined(LZO_CC_INTELC) && (__INTEL_COMPILER >= 800) && defined(LZO_CC_SYNTAX_GNUC)
 
#  define __lzo_nothrow         __attribute__((__nothrow__))
 
#elif defined(LZO_CC_LLVM) || defined(LZO_CC_PATHSCALE)
 
@@ -1485,13 +1485,13 @@ extern "C" {
 
#if defined(__lzo_nothrow)
 
#  define __lzo_HAVE_nothrow 1
 
#else
 
#  define __lzo_nothrow
 
#endif
 
#if !defined(__lzo_restrict)
 
#if (LZO_CC_GNUC >= 0x030400ul)
 
#if defined(LZO_CC_GNUC) && (LZO_CC_GNUC >= 0x030400ul)
 
#  define __lzo_restrict        __restrict__
 
#elif defined(LZO_CC_INTELC) && (__INTEL_COMPILER >= 600) && defined(LZO_CC_SYNTAX_GNUC)
 
#  define __lzo_restrict        __restrict__
 
#elif defined(LZO_CC_LLVM)
 
#  define __lzo_restrict        __restrict__
 
#elif defined(LZO_CC_MSC) && (_MSC_VER >= 1400)
 
@@ -1501,13 +1501,13 @@ extern "C" {
 
#if defined(__lzo_restrict)
 
#  define __lzo_HAVE_restrict 1
 
#else
 
#  define __lzo_restrict
 
#endif
 
#if !defined(__lzo_likely) && !defined(__lzo_unlikely)
 
#if (LZO_CC_GNUC >= 0x030200ul)
 
#if defined(LZO_CC_GNUC) && (LZO_CC_GNUC >= 0x030200ul)
 
#  define __lzo_likely(e)       (__builtin_expect(!!(e),1))
 
#  define __lzo_unlikely(e)     (__builtin_expect(!!(e),0))
 
#elif defined(LZO_CC_INTELC) && (__INTEL_COMPILER >= 800)
 
#  define __lzo_likely(e)       (__builtin_expect(!!(e),1))
 
#  define __lzo_unlikely(e)     (__builtin_expect(!!(e),0))
 
#elif defined(LZO_CC_LLVM) || defined(LZO_CC_PATHSCALE)
src/3rdparty/minilzo/minilzo.c
Show inline comments
 
@@ -1922,13 +1922,13 @@ extern "C" {
 
#  elif (LZO_SIZEOF_SIZE_T == LZO_SIZEOF_VOID_P)
 
#    define lzo_uintptr_t       size_t
 
#  elif (LZO_SIZEOF_LONG == LZO_SIZEOF_VOID_P)
 
#    define lzo_uintptr_t       unsigned long
 
#  elif (LZO_SIZEOF_INT == LZO_SIZEOF_VOID_P)
 
#    define lzo_uintptr_t       unsigned int
 
#  elif (LZO_SIZEOF_LONG_LONG == LZO_SIZEOF_VOID_P)
 
#  elif defined(LZO_SIZEOF_LONG_LONG) && (LZO_SIZEOF_LONG_LONG == LZO_SIZEOF_VOID_P)
 
#    define lzo_uintptr_t       unsigned long long
 
#  else
 
#    define lzo_uintptr_t       size_t
 
#  endif
 
#endif
 
//LZO_COMPILE_TIME_ASSERT_HEADER(sizeof(lzo_uintptr_t) >= sizeof(lzo_voidp))
 
@@ -2478,13 +2478,13 @@ LZO_PUBLIC(int)
 
__lzo_init_v2(unsigned v, int s1, int s2, int s3, int s4, int s5,
 
                          int s6, int s7, int s8, int s9)
 
{
 
    int r;
 

	
 
#if defined(__LZO_IN_MINILZO)
 
#elif (LZO_CC_MSC && ((_MSC_VER) < 700))
 
#elif defined(LZO_CC_MSC) && ((_MSC_VER) < 700)
 
#else
 
#define ACC_WANT_ACC_CHK_CH 1
 
#undef ACCCHK_ASSERT
 
#define ACCCHK_ASSERT(expr)  LZO_COMPILE_TIME_ASSERT(expr)
 
#endif
 
#undef ACCCHK_ASSERT
0 comments (0 inline, 0 general)