[Gmsh] Compilation with gcc 6.1.1
Martin Vymazal
martin.vymazal at vki.ac.be
Mon May 23 14:51:20 CEST 2016
Hello,
I'm getting the following error (svn revision 23170):
gmsh-source/Fltk/FlGui.cpp: In constructor ‘FlGui::FlGui(int, char**)’:
gmsh-source/FlGui.cpp:384:51: error: narrowing conversion of ‘128’ from
‘int’ to ‘char’ inside { } [-Wnarrowing]
0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00};
^
gmsh-source/Fltk/FlGui.cpp:384:51: error: narrowing conversion of ‘255’
from ‘int’ to ‘char’ inside { } [-Wnarrowing]
gmsh-source/Fltk/FlGui.cpp:384:51: error: narrowing conversion of ‘255’
from ‘int’ to ‘char’ inside { } [-Wnarrowing]
gmsh-source/Fltk/FlGui.cpp:384:51: error: narrowing conversion of ‘128’
from ‘int’ to ‘char’ inside { } [-Wnarrowing]
and then some more of the same kind. This can be fixed by changing
static char gmsh32x32[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x40, 0x03,
0x00,
0x00, 0x40, 0x03, 0x00, 0x00, 0x20, 0x07, 0x00, 0x00, 0x20, 0x07,
0x00,
0x00, 0x10, 0x0f, 0x00, 0x00, 0x10, 0x0f, 0x00, 0x00, 0x08, 0x1f,
0x00,
0x00, 0x08, 0x1f, 0x00, 0x00, 0x04, 0x3f, 0x00, 0x00, 0x04, 0x3f,
0x00,
0x00, 0x02, 0x7f, 0x00, 0x00, 0x02, 0x7f, 0x00, 0x00, 0x01, 0xff,
0x00,
0x00, 0x01, 0xff, 0x00, 0x80, 0x00, 0xff, 0x01, 0x80, 0x00, 0xff,
0x01,
0x40, 0x00, 0xff, 0x03, 0x40, 0x00, 0xff, 0x03, 0x20, 0x00, 0xff,
0x07,
0x20, 0x00, 0xff, 0x07, 0x10, 0x00, 0xff, 0x0f, 0x10, 0x00, 0xff,
0x0f,
0x08, 0x00, 0xff, 0x1f, 0x08, 0x00, 0xff, 0x1f, 0x04, 0x40, 0xfd,
0x3f,
0x04, 0xa8, 0xea, 0x3f, 0x02, 0x55, 0x55, 0x7f, 0xa2, 0xaa, 0xaa,
0x7a,
0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00};
to
static char gmsh32x32[] = {
"\x00\x00\x00\x00\x00\x80\x01\x00\x00\x40\x03\x00\
\x00\x40\x03\x00\x00\x20\x07\x00\x00\x20\x07\x00\
\x00\x10\x0f\x00\x00\x10\x0f\x00\x00\x08\x1f\x00\
\x00\x08\x1f\x00\x00\x04\x3f\x00\x00\x04\x3f\x00\
\x00\x02\x7f\x00\x00\x02\x7f\x00\x00\x01\xff\x00\
\x00\x01\xff\x00\x80\x00\xff\x01\x80\x00\xff\x01\
\x40\x00\xff\x03\x40\x00\xff\x03\x20\x00\xff\x07\
\x20\x00\xff\x07\x10\x00\xff\x0f\x10\x00\xff\x0f\
\x08\x00\xff\x1f\x08\x00\xff\x1f\x04\x40\xfd\x3f\
\x04\xa8\xea\x3f\x02\x55\x55\x7f\xa2\xaa\xaa\x7a\
\xff\xff\xff\xff\x00\x00\x00\x00"};
Best regards,
Martin
More information about the gmsh
mailing list