python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / espeak / 0002-tr_languages-cast-string_ordinal-init-values.patch
blobd37e64c6ea7e2426cac0205ca84f656dd889dc54
1 From 451330d09a6a3500b40bc4f5896ba790ab46cd6c Mon Sep 17 00:00:00 2001
2 From: Romain Naour <romain.naour@gmail.com>
3 Date: Sun, 15 Jan 2017 19:37:31 +0100
4 Subject: [PATCH 2/2] tr_languages: cast string_ordinal init values
6 On some architecture, "char" is signed (x86_64, nios2...) so the
7 compiler try to convert int 0xc2 and 0xba to a signed char.
8 This is an error since gcc6 (Wnarrowing).
10 Fixes:
11 http://autobuild.buildroot.net/results/bae/baef9888b1979d18171668a675985e3f3b45fda6
13 Signed-off-by: Romain Naour <romain.naour@gmail.com>
14 ---
15 src/tr_languages.cpp | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
18 diff --git a/src/tr_languages.cpp b/src/tr_languages.cpp
19 index 5c80286..dbc6e36 100644
20 --- a/src/tr_languages.cpp
21 +++ b/src/tr_languages.cpp
22 @@ -200,7 +200,7 @@ static const unsigned short chars_ignore_zwnj_hyphen[] = {
23 0x200d, 1, // zero width joiner
24 0, 0 };
26 -const char string_ordinal[] = {0xc2,0xba,0}; // masculine ordinal character, UTF-8
27 +const char string_ordinal[] = {(char)0xc2,(char)0xba,0}; // masculine ordinal character, UTF-8
30 static Translator* NewTranslator(void)
31 --
32 2.9.3