diff options
author | Shinya Kuribayashi <skuribay@ruby.dti.ne.jp> | 2008-02-23 17:24:16 +0900 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-02-23 09:49:48 +0100 |
commit | b075d74efb70ff68c49a2532f26b56d6703b69c1 (patch) | |
tree | d8974f967c97efc808fe5384e4332da679ae4f0d /include/asm-blackfin | |
parent | 208acd112e6517b21fc30c420396902b103563ac (diff) |
Remove the __STRICT_ANSI__ check from the __u64/__s64 declaration on 32bit targets.
----------------------------------------------------------------
Olaf Hering [Wed, 17 Oct 2007 06:27:13 +0000 (23:27 -0700)]
Remove the __STRICT_ANSI__ check from the __u64/__s64 declaration on
32bit targets.
GCC can be made to warn about usage of long long types with ISO C90
(-ansi), but only with -pedantic. You can write this in a way that even
then it doesn't cause warnings, namely by:
#ifdef __GNUC__
__extension__ typedef __signed__ long long __s64;
__extension__ typedef unsigned long long __u64;
#endif
The __extension__ keyword in front of this switches off any pedantic
warnings for this expression.
Signed-off-by: Olaf Hering <olh@suse.de>
Cc: <linux-arch@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
----------------------------------------------------------------
Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
Diffstat (limited to 'include/asm-blackfin')
-rw-r--r-- | include/asm-blackfin/types.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/asm-blackfin/types.h b/include/asm-blackfin/types.h index 665a419f2b..9fd8e03360 100644 --- a/include/asm-blackfin/types.h +++ b/include/asm-blackfin/types.h @@ -50,9 +50,9 @@ typedef __signed__ int __s32; typedef unsigned int __u32; /* HK0617 -- Changes to unsigned long temporarily */ -#if defined(__GNUC__) && !defined(__STRICT_ANSI__) -typedef __signed__ long long __s64; -typedef unsigned long long __u64; +#if defined(__GNUC__) +__extension__ typedef __signed__ long long __s64; +__extension__ typedef unsigned long long __u64; #endif /* |