[patch include]: Fix warnings

Kai Tietz ktietz70@googlemail.com
Thu Oct 22 07:44:00 GMT 2009


2009/9/25 Nick Clifton <nickc@redhat.com>:
> Hi Kai,
>
>> this patch fixes warnings about the use of long long, when cX9
>> standards are used, by prefixing typedef by __extension__.
>
>> -  typedef unsigned long long libi_uhostptr_t;
>> -  typedef long long libi_shostptr_t;
>> +  __extension__ typedef unsigned long long libi_uhostptr_t;
>> +  __extension__ typedef long long libi_shostptr_t;
>
> This would work providing that you are always compiling with a recent
> version of gcc or that you have included ansidecl.h before splay-tree.h, but
> that cannot be guaranteed.  I would suggest adding a check for gcc as well,
> eg:
>
>  #ifdef __GNUC__
>  __extension__
>  #endif
>  typedef unsigned long long lib_uhostptr_t;
>
> Cheers
>  Nick
>
>

Ok, here is the updated patch. Ok for apply?

Cheers,
Kai

-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination
-------------- next part --------------
A non-text attachment was scrubbed...
Name: f_splaytree.diff
Type: application/octet-stream
Size: 523 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20091022/961a3f7c/attachment.obj>


More information about the Binutils mailing list