kimkulling/osre

Build errors : Ubuntu 18.04 GCC 7 - stb_image submodule of osre

Closed this issue · 4 comments

nyue commented

Describe the bug
Compilation errors

To Reproduce
Build the head on Ubuntu 18.04

Screenshots

In file included from /data2/nyue/projects/assimp/kimkulling_osre/osre_git/contrib/assimp/code/Common/StbCommon.h:51:0,
                 from /data2/nyue/projects/assimp/kimkulling_osre/osre_git/contrib/assimp/code/Common/Assimp.cpp:1291:
/data2/nyue/projects/assimp/kimkulling_osre/osre_git/contrib/assimp/code/../contrib/stb/stb_image.h: In function ‘int stbi__parse_png_file(stbi__png*, int, int)’:
/data2/nyue/projects/assimp/kimkulling_osre/osre_git/contrib/assimp/code/../contrib/stb/stb_image.h:4837:45: error: ‘tc16[2]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
          if (p[0] == tc[0] && p[1] == tc[1] && p[2] == tc[2])
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/data2/nyue/projects/assimp/kimkulling_osre/osre_git/contrib/assimp/code/../contrib/stb/stb_image.h:4944:17: note: ‘tc16[2]’ was declared here
    stbi__uint16 tc16[3];

Desktop (please complete the following information):

  • OS: Ubuntu 18.04

Seems to be an compilation error caused by an uninitialized variable. Thanks for your report!

I have updated assimp. PR is on the way.

Shall work now.

nyue commented

It compiles fine now.