gcc6 narrowing error

gcc6 narrowing error compiling for PowerPC archi
===
[   51s] Cus428Midi.cc: At global scope:
[   51s] Cus428Midi.cc:83:1: error: narrowing conversion of '-1' from 'int' to 'char' inside { } [-Wnarrowing]
[   51s]  };
===

proposed patch as suggested in
https://gcc.gnu.org/gcc-6/porting_to.html

Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Michel Normand 2016-06-20 15:26:06 +02:00 committed by Takashi Iwai
parent 44f3750171
commit 70118f5f93
2 changed files with 94 additions and 94 deletions

View file

@ -32,22 +32,22 @@ char Cus428Midi::KnobParam[] = {
0x2A,
0x29,
0x28,
-1,
(char)-1,
0x10,
0x11,
0x18,
0x19,
0x1A,
-1,
-1,
-1,
-1,
(char)-1,
(char)-1,
(char)-1,
(char)-1,
0x2C,
0x2D,
0x2E,
0x2F,
-1,
-1,
(char)-1,
(char)-1,
0x20,
0x21,
0x22,
@ -64,14 +64,14 @@ char Cus428Midi::KnobParam[] = {
5,
6,
7,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
(char)-1,
(char)-1,
(char)-1,
(char)-1,
(char)-1,
(char)-1,
(char)-1,
(char)-1,
0x30,
0x31,
0x32,