git master fail to build

Issue #26 resolved
Former user created an issue

Building commit 27328d041e91661663d2577d5868c3de91d2d10c results in this:

/home/alex/soft/graphics/simple-viewer-gl/src/formats/xcf.cpp: In functionbool import_xcf(cFile&, sBitmapDescription&)’:
/home/alex/soft/graphics/simple-viewer-gl/src/formats/xcf.cpp:945:32: warning: format ‘%uexpects argument of typeunsigned int, but argument 2 has typeconst {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 ‘%uexpects argument of typeunsigned int, but argument 2 has typeconst {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 ‘%uexpects argument of typeunsigned 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 ‘%xexpects argument of typeunsigned int, but argument 2 has typeconst {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)

  1. Log in to comment