git master fail to build
Issue #26
resolved
Building commit 27328d041e91661663d2577d5868c3de91d2d10c results in this:
/home/alex/soft/graphics/simple-viewer-gl/src/formats/xcf.cpp: In function ‘bool import_xcf(cFile&, sBitmapDescription&)’:
/home/alex/soft/graphics/simple-viewer-gl/src/formats/xcf.cpp:945:32: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 2 has type ‘const {anonymous}::xcf_col_mode’ [-Wformat=]
945 | ::printf("(II) Color mode %u.\n", col_mode);
| ~^ ~~~~~~~~
| | |
| | const {anonymous}::xcf_col_mode
| unsigned int
/home/alex/soft/graphics/simple-viewer-gl/src/formats/xcf.cpp:963:39: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 2 has type ‘const {anonymous}::xcf_property_type’ [-Wformat=]
963 | ::printf("(II) Property type %u\n", prop.type);
| ~^ ~~~~~~~~~
| | |
| | const {anonymous}::xcf_property_type
| unsigned int
/home/alex/soft/graphics/simple-viewer-gl/src/formats/xcf.cpp:1006:40: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 2 has type ‘{anonymous}::xcf_layer_mode’ [-Wformat=]
1006 | ::printf("(II) Layer mode %u\n", p.mode);
| ~^ ~~~~~~
| | |
| | {anonymous}::xcf_layer_mode
| unsigned int
/home/alex/soft/graphics/simple-viewer-gl/src/formats/xcf.cpp:1053:34: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘const {anonymous}::xcf_property_type’ [-Wformat=]
1053 | ::printf(" type 0x%2x = %s (0x%x)\n", p.first.type, toBits(p.second).c_str(), p.second);
| ~~^ ~~~~~~~~~~~~
| | |
| unsigned int const {anonymous}::xcf_property_type
make[2]: *** [CMakeFiles/sviewgl.dir/build.make:628: CMakeFiles/sviewgl.dir/src/formats/xcf.cpp.o] Ошибка 1
make[1]: *** [CMakeFiles/Makefile2:137: CMakeFiles/sviewgl.dir/all] Ошибка 2
make: *** [Makefile:103: all] Ошибка 2
Comments (3)
-
repo owner -
repo owner Fixed, check it please.
-
repo owner - changed status to resolved
- Log in to comment
Hello, looks like you build in debug mode.