[U-Boot-Users] Remove the __STRICT_ANSI__ check from the __u64/__s64 declaration on 32bit targets.
Wolfgang Denk
wd at denx.de
Sat Feb 23 09:50:08 CET 2008
In message <47BFD830.6000701 at ruby.dti.ne.jp> you wrote:
> >From the Linux kernel commit 68a9bd0cd5824073e3232b102011ec568a517646
>
> ----------------------------------------------------------------
> 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 at suse.de>
> Cc: <linux-arch at vger.kernel.org>
> Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
> Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
> ----------------------------------------------------------------
>
> Signed-off-by: Shinya Kuribayashi <skuribay at ruby.dti.ne.jp>
Applied, thanks!!
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Fools ignore complexity. Pragmatists suffer it. Some can avoid it.
Geniuses remove it.
- Perlis's Programming Proverb #58, SIGPLAN Notices, Sept. 1982
More information about the U-Boot
mailing list