Update SDL2 and Assimp to fix compiler errors with newest MinGW-w64 #2699
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The currently used versions of SDL2 and Assimp do not compile with the newest version of MinGW-w64 (GCC 12.2+) from MSYS2. The issues where fixed in SDL2 2.24.1 and Assimp 5.2.5.
SDL2 issue:
libsdl-org/SDL#5728
libsdl-org/SDL@d2c4d74
I can't find a ticket for Assimp but i get a lot of these errors, which disappear after updating to 5.2.5:
ingw64/include/c++/12.2.0/bits/new_allocator.h:175:11: error: array subscript 'const aiVector3t<float>[1]' is partly outside array bounds of 'std::__cxx11::list<aiVector3t<float> > [1]' [-Werror=array-bounds] 175 | { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }