From: Laurent Aimar Date: Wed, 9 Jun 2004 19:35:07 +0000 (+0000) Subject: * mc-c.c compilation fix for gcc >= 3.3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=166ed2dd0b3ef0a89f64371e78c70a1b8f874ddd;p=libx264 * mc-c.c compilation fix for gcc >= 3.3 git-svn-id: svn://svn.videolan.org/x264/trunk@3 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/core/i386/mc-c.c b/core/i386/mc-c.c index aa7363b1..2957fa01 100644 --- a/core/i386/mc-c.c +++ b/core/i386/mc-c.c @@ -2,7 +2,7 @@ * mc.c: h264 encoder library (Motion Compensation) ***************************************************************************** * Copyright (C) 2003 Laurent Aimar - * $Id: mc-c.c,v 1.1 2004/06/03 19:27:07 fenrir Exp $ + * $Id: mc-c.c,v 1.2 2004/06/09 19:35:07 fenrir Exp $ * * Authors: Laurent Aimar * @@ -30,8 +30,13 @@ #include "../clip1.h" #include "mc.h" -#define UNUSED_UINT64( foo ) \ - static const uint64_t foo __asm__ (#foo) __attribute__((unused)) +#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) +#define USED_UINT64(foo) \ + static const uint64_t foo __asm__ (#foo) __attribute__((used)) +#else +#define USED_UINT64(foo) \ + static const uint64_t foo __asm__ (#foo) __attribute__((unused)) +#endif UNUSED_UINT64( x264_w0x10 ) = 0x0010001000100010ULL;