Re: [hatari-devel] warning: array subscript has type ‘char’ [-Wchar-subscripts] |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] warning: array subscript has type ‘char’ [-Wchar-subscripts]
- From: Vincent Rivière <vincent.riviere@xxxxxxxxxxx>
- Date: Mon, 09 Jun 2014 22:23:53 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=KpOuaJvkKiPISHkTfWa07dDJwtwHW/bvPsZdina4R8c=; b=1JI764llYCjSRInT5lTp4Ai9VFsxv8ahlflj8TXOGSh8GbpFskOF4uXl6Un8bopv/1 lxwZA87UII/QO9GznGx0Z30ZmVWLh5Lq2KGbpa0O2kDh/rLIaw1hdea23u1DgGOh5B8n u3g4tf5Md+4wx9ugYe401gFPRdPzi8gauzB2u9IFdlEfihAJ+m0nI9oq011J4XSnDbwE Ec4uGDkMkmCVP+HR7DTAhbZkPXmd364x8b7moRxd+oanglxPSQuhml2OKzeol1IuBExm QYFJDwP01LMbdbeVQu3Zn2Gs1Bd17Ljv4tfKHYTDWrfE8pwaDQHwxJ+NjB7ATToTf6oD R1mQ==
On 09/06/2014 22:14, Vincent Rivière wrote:
warning: array subscript has type ‘char’ [-Wchar-subscripts]
Finally, it seems to be a Newlib (Cygwin's libc) feature:
https://sourceware.org/ml/newlib/2014/msg00066.html
The theoretical clean solution would be to cast the ctype function arguments
to unsigned char, but I'm not fully convinced that it's sane to cripple the
source code that way.
--
Vincent Rivière