diff options
Diffstat (limited to 'finance/gnucash/patches/patch-gnucash_gnome-utils_gnc-date-edit.c')
-rw-r--r-- | finance/gnucash/patches/patch-gnucash_gnome-utils_gnc-date-edit.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/finance/gnucash/patches/patch-gnucash_gnome-utils_gnc-date-edit.c b/finance/gnucash/patches/patch-gnucash_gnome-utils_gnc-date-edit.c new file mode 100644 index 00000000000..fbc1e096711 --- /dev/null +++ b/finance/gnucash/patches/patch-gnucash_gnome-utils_gnc-date-edit.c @@ -0,0 +1,22 @@ +$NetBSD: patch-gnucash_gnome-utils_gnc-date-edit.c,v 1.1 2019/01/11 11:50:55 wiz Exp $ + +Fix build with clang +error: array subscript is of type 'char' + +--- gnucash/gnome-utils/gnc-date-edit.c.orig 2018-12-25 22:43:08.000000000 +0000 ++++ gnucash/gnome-utils/gnc-date-edit.c +@@ -1113,12 +1113,12 @@ gnc_date_edit_get_date_internal (GNCDate + temp = gnc_strtok_r (NULL, ": ", &tokp); + if (temp) + { +- if (isdigit (*temp)) ++ if (isdigit ((unsigned char)*temp)) + { + tm.tm_min = atoi (temp); + flags = gnc_strtok_r (NULL, ": ", + &tokp); +- if (flags && isdigit (*flags)) ++ if (flags && isdigit ((unsigned char)*flags)) + { + tm.tm_sec = atoi (flags); + flags = gnc_strtok_r (NULL, |