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
 
@@ -1321,65 +1321,65 @@ extern "C" {
 
#elif defined(LZO_CC_MWERKS) && defined(__MSL__)
 
#  define LZO_LIBC_MSL          __MSL__
 
#  define LZO_INFO_LIBC         "msl"
 
#elif 1 && defined(__IAR_SYSTEMS_ICC__)
 
#  define LZO_LIBC_ISOC90       1
 
#  define LZO_INFO_LIBC         "isoc90"
 
#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)
 
#  define __lzo_ua_volatile     volatile
 
#endif
 
#if !defined(__lzo_alignof)
 
#if defined(LZO_CC_CILLY) || defined(LZO_CC_GNUC) || defined(LZO_CC_LLVM) || defined(LZO_CC_PATHSCALE) || defined(LZO_CC_PGI)
 
#  define __lzo_alignof(e)      __alignof__(e)
 
#elif defined(LZO_CC_INTELC) && (__INTEL_COMPILER >= 700)
 
#  define __lzo_alignof(e)      __alignof__(e)
 
#elif defined(LZO_CC_MSC) && (_MSC_VER >= 1300)
 
#  define __lzo_alignof(e)      __alignof(e)
 
#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
 
#if defined(__lzo_HAVE_destructor) && !defined(__lzo_HAVE_constructor)
 
#  error "this should not happen"
 
#endif
 
#if !defined(__lzo_inline)
 
#if defined(LZO_CC_TURBOC) && (__TURBOC__ <= 0x0295)
 
#elif defined(__cplusplus)
 
@@ -1397,123 +1397,123 @@ extern "C" {
 
#elif defined(LZO_CC_MSC) && (_MSC_VER >= 900)
 
#  define __lzo_inline          __inline
 
#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
 
#  define __lzo_inline          inline
 
#endif
 
#endif
 
#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)
 
#  define __lzo_forceinline     __inline__ __attribute__((__always_inline__))
 
#elif defined(LZO_CC_MSC) && (_MSC_VER >= 1200)
 
#  define __lzo_forceinline     __forceinline
 
#endif
 
#endif
 
#if defined(__lzo_forceinline)
 
#  define __lzo_HAVE_forceinline 1
 
#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
 
#if defined(__lzo_noinline)
 
#  define __lzo_HAVE_noinline 1
 
#else
 
#  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)
 
#  define __lzo_noreturn        __attribute__((__noreturn__))
 
#elif defined(LZO_CC_MSC) && (_MSC_VER >= 1200)
 
#  define __lzo_noreturn        __declspec(noreturn)
 
#endif
 
#endif
 
#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)
 
#  define __lzo_nothrow         __attribute__((__nothrow__))
 
#elif defined(LZO_CC_MSC) && (_MSC_VER >= 1200) && defined(__cplusplus)
 
#  define __lzo_nothrow         __declspec(nothrow)
 
#endif
 
#endif
 
#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)
 
#  define __lzo_restrict        __restrict
 
#endif
 
#endif
 
#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)
 
#  define __lzo_likely(e)       (__builtin_expect(!!(e),1))
 
#  define __lzo_unlikely(e)     (__builtin_expect(!!(e),0))
 
#endif
 
#endif
 
#if defined(__lzo_likely)
 
#  define __lzo_HAVE_likely 1
src/3rdparty/minilzo/minilzo.c
Show inline comments
 
@@ -1916,25 +1916,25 @@ extern "C" {
 
#  if defined(__LZO_MMODEL_HUGE)
 
#    define lzo_uintptr_t       unsigned long
 
#  elif 1 && defined(LZO_OS_OS400) && (LZO_SIZEOF_VOID_P == 16)
 
#    define __LZO_UINTPTR_T_IS_POINTER 1
 
     typedef char*              lzo_uintptr_t;
 
#    define lzo_uintptr_t       lzo_uintptr_t
 
#  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))
 

	
 
#if 1 && !defined(LZO_CFG_FREESTANDING)
 
#if 1 && !defined(HAVE_STRING_H)
 
#define HAVE_STRING_H 1
 
#endif
 
#if 1 && !defined(HAVE_MEMCMP)
 
@@ -2472,25 +2472,25 @@ LZO_PUBLIC(int)
 
    return r == 1 ? LZO_E_OK : LZO_E_ERROR;
 
}
 

	
 
int __lzo_init_done = 0;
 

	
 
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
 

	
 
    __lzo_init_done = 1;
 

	
 
    if (v == 0)
 
        return LZO_E_ERROR;
 

	
0 comments (0 inline, 0 general)