Skip to content

Bump stb_image version#1072

Merged
jdumas merged 1 commit intolibigl:devfrom
w-m:dev
Feb 22, 2019
Merged

Bump stb_image version#1072
jdumas merged 1 commit intolibigl:devfrom
w-m:dev

Conversation

@w-m
Copy link
Copy Markdown
Contributor

@w-m w-m commented Jan 10, 2019

As noted in libigl/libigl-stb#2:

Compiling igl_stb_image with gcc 7.3 (Ubuntu 18.04 LTS) with -Wall creates many warnings, like

libigl/external/stb/stb_image.h: In function ‘unsigned char* stbi__convert_format(unsigned char*, int, int, unsigned int, unsigned int)’:
libigl/external/stb/stb_image.h:1361:44: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
       #define CASE(a,b)   case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
                                            ^

These warnings have been fixed upstream in stb_image and stb_image_write, thus I propose to update these files to their current versions from nothings/stb master. Compiling with these versions runs warnings-free.

  • All changes meet libigl style-guidelines.
  • Adds new .cpp file.
  • Adds corresponding unit test.
  • Adds corresponding python binding.
  • This is a minor change.

@w-m
Copy link
Copy Markdown
Contributor Author

w-m commented Jan 16, 2019

Release build fails due to timeout:

Build execution time has reached the maximum allowed time for your plan (60 minutes).

Is that a random occurrence or is it something I need to fix?

@jdumas
Copy link
Copy Markdown
Collaborator

jdumas commented Jan 16, 2019

Not really. That's something we need to work on, but unfortunately I don't have a lot of idea on how to improve build times on AppVeyor (there is no simple equivalent of ccache). Maybe we can try to split the build in compiling the modules separately ... who knows. Need to think a bit about this one.

In any case, either @alecjacobson or @danielepanozzo can still merge your PR even if the build timeout on AppVeyor.

@jdumas jdumas merged commit a022f3f into libigl:dev Feb 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants