[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
libtasn1-4.9 ctype issue
From: |
Thomas Klausner |
Subject: |
libtasn1-4.9 ctype issue |
Date: |
Mon, 16 Jan 2017 02:24:28 +0100 |
Hi!
Compilation of libtasn1 on NetBSD fails with the default setting of
-Werror because of:
ASN1.y: In function '_asn1_yylex':
ASN1.y:578:9: error: array subscript has type 'char' [-Werror=char-subscripts]
if (!isdigit (string[k]))
^
NetBSD is pickier with ctype macros than most other operating systems.
Details about this are e.g. at
http://netbsd.gw.com/cgi-bin/man-cgi?ctype++NetBSD-current
in the CAVEATS section.
In short: The argument should be cast to (unsigned char) after making
sure that that is correct.
Please fix this for the next release.
One other comment:
Please make the bug report address more visible in the README.
Cheers,
Thomas
- libtasn1-4.9 ctype issue,
Thomas Klausner <=