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