Maratis-4 icon indicating copy to clipboard operation
Maratis-4 copied to clipboard

"Narrowing Conversion" error when trying to build on Linux

Open sunnystormy opened this issue 6 years ago • 2 comments

I'm trying to build the Maratis-4 engine on my Debian "Buster" machine, but, I am getting this error:

"Maratis-4/3rdparty/freeimage/Source/LibRawLite/internal/dcraw_common.cpp:3964:3: error: narrowing conversion of ‘128’ from ‘int’ to ‘signed char’ inside { } [-Wnarrowing] }, chood[] = { -1,-1, -1,0, -1,+1, 0,+1, +1,+1, +1,0, +1,-1, 0,-1 };"

I have successfully compiled the tiny-c-library and have tested the demos without issue. Am I missing something here? Please let me know!

sunnystormy avatar Jul 04 '18 15:07 sunnystormy

I am also getting the same problem on my pinebookpro armhf ubuntu 18 I have try make -k, but still fails also got the tinyclib to compile and work. Any idea whats wrong or a fix

eodowd avatar Jan 21 '20 18:01 eodowd

It can probably be fixed by adding '-Wno-narrowing' to the compile options. (try to add it in CMakeLists.txt line 70 for ex)

anael-seghezzi avatar Jan 22 '20 12:01 anael-seghezzi