Re: clang warnings when building fontconfig git head

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jun 28, 2013 at 3:32 PM, Akira TAGOH <akira@xxxxxxxxx> wrote:
> On Wed, Jun 26, 2013 at 12:15 AM, Thomas Klausner <wiz@xxxxxxxxxx> wrote:
>> And a few warnings because the is* macros on NetBSD only accept EOF or
>> unsigned char. These are usually fixed by adding casts, i.e.
>> "isspace((unsigned char)foo)".
>>
>>   GEN      fc-case
>> fc-case.c:217:10: warning: array subscript is of type 'char' [-Wchar-subscripts]
>>     if (!isxdigit (line[0]))
>>          ^~~~~~~~~~~~~~~~~~
>> /usr/include/sys/ctype_inline.h:58:45: note: expanded from macro 'isxdigit'
>> #define isxdigit(c)     ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_X))
>>                                                 ^~~~
>> 1 warning generated.
>
> shouldn't this issue be rather fixed in macro to deal with the
> subscript as integer because of C99 and POSIX spec?

Hmm, dunno. just ignore it.

-- 
Akira TAGOH
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig




[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux