Running phase: unpackPhase unpacking source archive /nix/store/ji3qzwwny7h279ny8da223xlf5h9jzjb-source source root is source Running phase: patchPhase Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase fixing cmake files... cmake flags: -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LOCALEDIR=/nix/store/fq3hccssf9isn3a4k99ixb9lw476s9mi-SDL_gpu-0-unstable-2022-06-24/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/fq3hccssf9isn3a4k99ixb9lw476s9mi-SDL_gpu-0-unstable-2022-06-24/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/fq3hccssf9isn3a4k99ixb9lw476s9mi-SDL_gpu-0-unstable-2022-06-24/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/fq3hccssf9isn3a4k99ixb9lw476s9mi-SDL_gpu-0-unstable-2022-06-24/share/doc/SDL_gpu -DCMAKE_INSTALL_INFODIR=/nix/store/fq3hccssf9isn3a4k99ixb9lw476s9mi-SDL_gpu-0-unstable-2022-06-24/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/fq3hccssf9isn3a4k99ixb9lw476s9mi-SDL_gpu-0-unstable-2022-06-24/share/man -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/8kz64n6nyyrms2vfjmfhg9g0q9jwa118-SDL_gpu-0-unstable-2022-06-24-dev/include -DCMAKE_INSTALL_SBINDIR=/nix/store/fq3hccssf9isn3a4k99ixb9lw476s9mi-SDL_gpu-0-unstable-2022-06-24/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/fq3hccssf9isn3a4k99ixb9lw476s9mi-SDL_gpu-0-unstable-2022-06-24/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/fq3hccssf9isn3a4k99ixb9lw476s9mi-SDL_gpu-0-unstable-2022-06-24/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_STRIP=/nix/store/ii75mhh7sxl11167m1b86p0qrjsjyjmd-gcc-wrapper-14-20241116/bin/strip -DCMAKE_RANLIB=/nix/store/ii75mhh7sxl11167m1b86p0qrjsjyjmd-gcc-wrapper-14-20241116/bin/ranlib -DCMAKE_AR=/nix/store/ii75mhh7sxl11167m1b86p0qrjsjyjmd-gcc-wrapper-14-20241116/bin/ar -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_INSTALL_PREFIX=/nix/store/fq3hccssf9isn3a4k99ixb9lw476s9mi-SDL_gpu-0-unstable-2022-06-24 -DSDL_gpu_BUILD_DEMOS:BOOL=FALSE -DSDL_gpu_BUILD_TOOLS:BOOL=FALSE -DSDL_gpu_BUILD_VIDEO_TEST:BOOL=FALSE -DSDL_gpu_BUILD_TESTS:BOOL=FALSE CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument value. Or, use the ... syntax to tell CMake that the project requires at least but has been updated to work with policies introduced by or earlier. -- The C compiler identification is GNU 14.2.1 -- The CXX compiler identification is GNU 14.2.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /nix/store/ii75mhh7sxl11167m1b86p0qrjsjyjmd-gcc-wrapper-14-20241116/bin/gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /nix/store/ii75mhh7sxl11167m1b86p0qrjsjyjmd-gcc-wrapper-14-20241116/bin/g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done Writing version header for v0.12.0 Using generic defaults. -- Found SDL2: /nix/store/llw3drqhjp8qcf152fsf97lvkad723gf-SDL2-2.32.0/lib/libSDL2.so CMake Warning at CMakeLists.txt:189 (message): SDL2MAIN_LIBRARY is NOTFOUND CMake Warning (dev) at /nix/store/01dapiw4pjrc9s0166dcyg9xkw0rv01z-cmake-3.31.5/share/cmake-3.31/Modules/FindOpenGL.cmake:415 (message): Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when available. Run "cmake --help-policy CMP0072" for policy details. Use the cmake_policy command to set the policy and suppress this warning. FindOpenGL found both a legacy GL library: OPENGL_gl_LIBRARY: /nix/store/4yhzwb09jja7wfifhh0qv9d671gf0g8c-libglvnd-1.7.0/lib/libGL.so and GLVND libraries for OpenGL and GLX: OPENGL_opengl_LIBRARY: /nix/store/4yhzwb09jja7wfifhh0qv9d671gf0g8c-libglvnd-1.7.0/lib/libOpenGL.so OPENGL_glx_LIBRARY: /nix/store/4yhzwb09jja7wfifhh0qv9d671gf0g8c-libglvnd-1.7.0/lib/libGLX.so OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for compatibility with CMake 3.10 and below the legacy GL library will be used. Call Stack (most recent call first): CMakeLists.txt:202 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- Found OpenGL: /nix/store/4yhzwb09jja7wfifhh0qv9d671gf0g8c-libglvnd-1.7.0/lib/libOpenGL.so Using bundled version of GLEW -- Found PkgConfig: /nix/store/601zbsyxn1zqx22yrif9yxa1x450qfc8-pkg-config-wrapper-0.29.2/bin/pkg-config (found version "0.29.2") -- Checking for module 'libstbi' -- No package 'libstbi' found Using bundled version of stb-image -- Checking for module 'libstbi_write' -- No package 'libstbi_write' found Using bundled version of stb-image-write -- Configuring done (0.6s) -- Generating done (0.0s) CMake Warning: Manually-specified variables were not used by the project: BUILD_TESTING CMAKE_EXPORT_NO_PACKAGE_REGISTRY CMAKE_INSTALL_BINDIR CMAKE_INSTALL_DOCDIR CMAKE_INSTALL_INCLUDEDIR CMAKE_INSTALL_INFODIR CMAKE_INSTALL_LIBDIR CMAKE_INSTALL_LIBEXECDIR CMAKE_INSTALL_LOCALEDIR CMAKE_INSTALL_MANDIR CMAKE_INSTALL_SBINDIR CMAKE_POLICY_DEFAULT_CMP0025 SDL_gpu_BUILD_DEMOS SDL_gpu_BUILD_TESTS SDL_gpu_BUILD_TOOLS SDL_gpu_BUILD_VIDEO_TEST -- Build files have been written to: /build/source/build cmake: enabled parallel building cmake: enabled parallel installing Running phase: buildPhase build flags: -j2 SHELL=/nix/store/11ciq72n4fdv8rw6wgjgasfv4mjs1jrw-bash-5.2p37/bin/bash [ 2%] Building C object CMakeFiles/test-common.dir/common/common.c.o [ 4%] Building C object src/CMakeFiles/SDL_gpu_shared.dir/externals/glew/glew.c.o /build/source/src/externals/glew/glew.c: In function '_glewStrSame1': /build/source/src/externals/glew/glew.c:270:29: warning: the comparison will always evaluate as 'true' for the pointer operand in '*a + (sizetype)i' must not be NULL [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-Waddress8;;] 270 | while (i < nb && (*a)+i != NULL && b+i != NULL && (*a)[i] == b[i]) i++; | ^~ /build/source/src/externals/glew/glew.c:270:44: warning: the comparison will always evaluate as 'true' for the pointer operand in 'b + (sizetype)i' must not be NULL [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-Waddress8;;] 270 | while (i < nb && (*a)+i != NULL && b+i != NULL && (*a)[i] == b[i]) i++; | ^~ /build/source/src/externals/glew/glew.c: In function '_glewStrSame2': /build/source/src/externals/glew/glew.c:286:29: warning: the comparison will always evaluate as 'true' for the pointer operand in '*a + (sizetype)i' must not be NULL [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-Waddress8;;] 286 | while (i < nb && (*a)+i != NULL && b+i != NULL && (*a)[i] == b[i]) i++; | ^~ /build/source/src/externals/glew/glew.c:286:44: warning: the comparison will always evaluate as 'true' for the pointer operand in 'b + (sizetype)i' must not be NULL [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-Waddress8;;] 286 | while (i < nb && (*a)+i != NULL && b+i != NULL && (*a)[i] == b[i]) i++; | ^~ /build/source/src/externals/glew/glew.c: In function '_glewStrSame3': /build/source/src/externals/glew/glew.c:302:29: warning: the comparison will always evaluate as 'true' for the pointer operand in '*a + (sizetype)i' must not be NULL [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-Waddress8;;] 302 | while (i < nb && (*a)+i != NULL && b+i != NULL && (*a)[i] == b[i]) i++; | ^~ /build/source/src/externals/glew/glew.c:302:44: warning: the comparison will always evaluate as 'true' for the pointer operand in 'b + (sizetype)i' must not be NULL [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-Waddress8;;] 302 | while (i < nb && (*a)+i != NULL && b+i != NULL && (*a)[i] == b[i]) i++; | ^~ /build/source/common/common.c: In function 'printRenderers': /build/source/common/common.c:20:5: warning: this 'else' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 20 | else | ^~~~ /build/source/common/common.c:23:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 23 | renderers = (GPU_RendererID*)malloc(sizeof(GPU_RendererID)*GPU_GetNumRegisteredRenderers()); | ^~~~~~~~~ /build/source/common/common.c: In function 'initialize_demo': /build/source/common/common.c:91:5: warning: this 'else' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 91 | else | ^~~~ /build/source/common/common.c:94:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 94 | if(screen == NULL) | ^~ [ 6%] Building C object CMakeFiles/test-common.dir/common/demo-font.c.o [ 8%] Linking C static library libtest-common.a [ 8%] Built target test-common [ 10%] Building C object src/CMakeFiles/SDL_gpu_shared.dir/SDL_gpu.c.o [ 13%] Building C object src/CMakeFiles/SDL_gpu_shared.dir/SDL_gpu_matrix.c.o /build/source/src/SDL_gpu_matrix.c: In function 'GPU_InitMatrixStack': /build/source/src/SDL_gpu_matrix.c:81:5: warning: this 'if' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 81 | if(stack == NULL) | ^~ /build/source/src/SDL_gpu_matrix.c:84:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 84 | if (stack->storage_size != 0) | ^~ /build/source/src/SDL_gpu_matrix.c: In function 'GPU_PopMatrix': /build/source/src/SDL_gpu_matrix.c:594:5: warning: this 'if' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 594 | if(target == NULL) | ^~ /build/source/src/SDL_gpu_matrix.c:598:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 598 | GPU_FlushBlitBuffer(); | ^~~~~~~~~~~~~~~~~~~ /build/source/src/SDL_gpu_matrix.c: In function 'GPU_SetProjection': /build/source/src/SDL_gpu_matrix.c:622:5: warning: this 'if' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 622 | if(target == NULL || A == NULL) | ^~ /build/source/src/SDL_gpu_matrix.c:625:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 625 | GPU_FlushBlitBuffer(); | ^~~~~~~~~~~~~~~~~~~ /build/source/src/SDL_gpu_matrix.c: In function 'GPU_SetModel': /build/source/src/SDL_gpu_matrix.c:632:5: warning: this 'if' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 632 | if(target == NULL || A == NULL) | ^~ /build/source/src/SDL_gpu_matrix.c:635:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 635 | GPU_FlushBlitBuffer(); | ^~~~~~~~~~~~~~~~~~~ /build/source/src/SDL_gpu_matrix.c: In function 'GPU_SetView': /build/source/src/SDL_gpu_matrix.c:642:5: warning: this 'if' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 642 | if(target == NULL || A == NULL) | ^~ /build/source/src/SDL_gpu_matrix.c:645:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 645 | GPU_FlushBlitBuffer(); | ^~~~~~~~~~~~~~~~~~~ /build/source/src/SDL_gpu_matrix.c: In function 'GPU_LoadMatrix': /build/source/src/SDL_gpu_matrix.c:696:5: warning: this 'if' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 696 | if(result == NULL) | ^~ /build/source/src/SDL_gpu_matrix.c:698:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 698 | GPU_FlushBlitBuffer(); | ^~~~~~~~~~~~~~~~~~~ /build/source/src/SDL_gpu_matrix.c: In function 'GPU_MultMatrix': /build/source/src/SDL_gpu_matrix.c:748:5: warning: this 'if' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 748 | if(result == NULL) | ^~ /build/source/src/SDL_gpu_matrix.c:750:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 750 | GPU_FlushBlitBuffer(); | ^~~~~~~~~~~~~~~~~~~ [ 15%] Building C object src/CMakeFiles/SDL_gpu_shared.dir/SDL_gpu_renderer.c.o /build/source/src/SDL_gpu_renderer.c: In function 'GPU_FreeRenderer': /build/source/src/SDL_gpu_renderer.c:493:5: warning: this 'if' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 493 | if(current_renderer == renderer) | ^~ /build/source/src/SDL_gpu_renderer.c:496:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 496 | for(i = 0; i < GPU_MAX_ACTIVE_RENDERERS; i++) | ^~~ [ 17%] Building C object src/CMakeFiles/SDL_gpu_shared.dir/SDL_gpu_shapes.c.o [ 19%] Building C object src/CMakeFiles/SDL_gpu_shared.dir/renderer_OpenGL_1_BASE.c.o In file included from /build/source/src/renderer_OpenGL_1_BASE.c:22: /build/source/src/renderer_GL_common.inl: In function 'SetWindowResolution': /build/source/src/renderer_GL_common.inl:2152:5: warning: this 'if' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 2152 | if(isCurrent) | ^~ /build/source/src/renderer_GL_common.inl:2155:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 2155 | GPU_ResetProjection(target); | ^~~~~~~~~~~~~~~~~~~ /build/source/src/renderer_GL_common.inl: In function 'SetVirtualResolution': /build/source/src/renderer_GL_common.inl:2175:5: warning: this 'if' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 2175 | if(isCurrent) | ^~ /build/source/src/renderer_GL_common.inl:2178:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 2178 | GPU_ResetProjection(target); | ^~~~~~~~~~~~~~~~~~~ /build/source/src/renderer_GL_common.inl: In function 'UnsetVirtualResolution': /build/source/src/renderer_GL_common.inl:2197:5: warning: this 'if' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 2197 | if(isCurrent) | ^~ /build/source/src/renderer_GL_common.inl:2200:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 2200 | GPU_ResetProjection(target); | ^~~~~~~~~~~~~~~~~~~ In file included from /build/source/src/renderer_OpenGL_1_BASE.c:23: /build/source/src/renderer_shapes_GL_common.inl: In function 'SetLineThickness': /build/source/src/renderer_shapes_GL_common.inl:97:5: warning: this 'if' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 97 | if(renderer->current_context_target == NULL) | ^~ /build/source/src/renderer_shapes_GL_common.inl:100:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 100 | old = renderer->current_context_target->context->line_thickness; | ^~~ /build/source/src/renderer_OpenGL_1_BASE.c: In function 'GPU_CreateRenderer_OpenGL_1_BASE': /build/source/src/renderer_GL_common.inl:6993:32: error: assignment to 'GPU_Image * (*)(GPU_Renderer *, SDL_Surface *, GPU_Rect *)' from incompatible pointer type 'GPU_Image * (*)(GPU_Renderer *, SDL_Surface *, const GPU_Rect *)' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wincompatible-pointer-types-Wincompatible-pointer-types8;;] 6993 | impl->CopyImageFromSurface = &CopyImageFromSurface; \ | ^ /build/source/src/renderer_OpenGL_1_BASE.c:47:5: note: in expansion of macro 'SET_COMMON_FUNCTIONS' 47 | SET_COMMON_FUNCTIONS(renderer->impl); | ^~~~~~~~~~~~~~~~~~~~ make[2]: *** [src/CMakeFiles/SDL_gpu_shared.dir/build.make:149: src/CMakeFiles/SDL_gpu_shared.dir/renderer_OpenGL_1_BASE.c.o] Error 1 make[2]: *** Waiting for unfinished jobs.... [ 21%] Building C object src/CMakeFiles/SDL_gpu.dir/externals/glew/glew.c.o /build/source/src/externals/glew/glew.c: In function '_glewStrSame1': /build/source/src/externals/glew/glew.c:270:29: warning: the comparison will always evaluate as 'true' for the pointer operand in '*a + (sizetype)i' must not be NULL [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-Waddress8;;] 270 | while (i < nb && (*a)+i != NULL && b+i != NULL && (*a)[i] == b[i]) i++; | ^~ /build/source/src/externals/glew/glew.c:270:44: warning: the comparison will always evaluate as 'true' for the pointer operand in 'b + (sizetype)i' must not be NULL [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-Waddress8;;] 270 | while (i < nb && (*a)+i != NULL && b+i != NULL && (*a)[i] == b[i]) i++; | ^~ /build/source/src/externals/glew/glew.c: In function '_glewStrSame2': /build/source/src/externals/glew/glew.c:286:29: warning: the comparison will always evaluate as 'true' for the pointer operand in '*a + (sizetype)i' must not be NULL [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-Waddress8;;] 286 | while (i < nb && (*a)+i != NULL && b+i != NULL && (*a)[i] == b[i]) i++; | ^~ /build/source/src/externals/glew/glew.c:286:44: warning: the comparison will always evaluate as 'true' for the pointer operand in 'b + (sizetype)i' must not be NULL [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-Waddress8;;] 286 | while (i < nb && (*a)+i != NULL && b+i != NULL && (*a)[i] == b[i]) i++; | ^~ /build/source/src/externals/glew/glew.c: In function '_glewStrSame3': /build/source/src/externals/glew/glew.c:302:29: warning: the comparison will always evaluate as 'true' for the pointer operand in '*a + (sizetype)i' must not be NULL [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-Waddress8;;] 302 | while (i < nb && (*a)+i != NULL && b+i != NULL && (*a)[i] == b[i]) i++; | ^~ /build/source/src/externals/glew/glew.c:302:44: warning: the comparison will always evaluate as 'true' for the pointer operand in 'b + (sizetype)i' must not be NULL [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-Waddress8;;] 302 | while (i < nb && (*a)+i != NULL && b+i != NULL && (*a)[i] == b[i]) i++; | ^~ make[1]: *** [CMakeFiles/Makefile2:179: src/CMakeFiles/SDL_gpu_shared.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 23%] Building C object src/CMakeFiles/SDL_gpu.dir/SDL_gpu.c.o [ 26%] Building C object src/CMakeFiles/SDL_gpu.dir/SDL_gpu_matrix.c.o /build/source/src/SDL_gpu_matrix.c: In function 'GPU_InitMatrixStack': /build/source/src/SDL_gpu_matrix.c:81:5: warning: this 'if' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 81 | if(stack == NULL) | ^~ /build/source/src/SDL_gpu_matrix.c:84:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 84 | if (stack->storage_size != 0) | ^~ /build/source/src/SDL_gpu_matrix.c: In function 'GPU_PopMatrix': /build/source/src/SDL_gpu_matrix.c:594:5: warning: this 'if' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 594 | if(target == NULL) | ^~ /build/source/src/SDL_gpu_matrix.c:598:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 598 | GPU_FlushBlitBuffer(); | ^~~~~~~~~~~~~~~~~~~ /build/source/src/SDL_gpu_matrix.c: In function 'GPU_SetProjection': /build/source/src/SDL_gpu_matrix.c:622:5: warning: this 'if' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 622 | if(target == NULL || A == NULL) | ^~ /build/source/src/SDL_gpu_matrix.c:625:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 625 | GPU_FlushBlitBuffer(); | ^~~~~~~~~~~~~~~~~~~ /build/source/src/SDL_gpu_matrix.c: In function 'GPU_SetModel': /build/source/src/SDL_gpu_matrix.c:632:5: warning: this 'if' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 632 | if(target == NULL || A == NULL) | ^~ /build/source/src/SDL_gpu_matrix.c:635:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 635 | GPU_FlushBlitBuffer(); | ^~~~~~~~~~~~~~~~~~~ /build/source/src/SDL_gpu_matrix.c: In function 'GPU_SetView': /build/source/src/SDL_gpu_matrix.c:642:5: warning: this 'if' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 642 | if(target == NULL || A == NULL) | ^~ /build/source/src/SDL_gpu_matrix.c:645:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 645 | GPU_FlushBlitBuffer(); | ^~~~~~~~~~~~~~~~~~~ /build/source/src/SDL_gpu_matrix.c: In function 'GPU_LoadMatrix': /build/source/src/SDL_gpu_matrix.c:696:5: warning: this 'if' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 696 | if(result == NULL) | ^~ /build/source/src/SDL_gpu_matrix.c:698:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 698 | GPU_FlushBlitBuffer(); | ^~~~~~~~~~~~~~~~~~~ /build/source/src/SDL_gpu_matrix.c: In function 'GPU_MultMatrix': /build/source/src/SDL_gpu_matrix.c:748:5: warning: this 'if' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 748 | if(result == NULL) | ^~ /build/source/src/SDL_gpu_matrix.c:750:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 750 | GPU_FlushBlitBuffer(); | ^~~~~~~~~~~~~~~~~~~ [ 28%] Building C object src/CMakeFiles/SDL_gpu.dir/SDL_gpu_renderer.c.o /build/source/src/SDL_gpu_renderer.c: In function 'GPU_FreeRenderer': /build/source/src/SDL_gpu_renderer.c:493:5: warning: this 'if' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 493 | if(current_renderer == renderer) | ^~ /build/source/src/SDL_gpu_renderer.c:496:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 496 | for(i = 0; i < GPU_MAX_ACTIVE_RENDERERS; i++) | ^~~ [ 30%] Building C object src/CMakeFiles/SDL_gpu.dir/SDL_gpu_shapes.c.o [ 32%] Building C object src/CMakeFiles/SDL_gpu.dir/renderer_OpenGL_1_BASE.c.o In file included from /build/source/src/renderer_OpenGL_1_BASE.c:22: /build/source/src/renderer_GL_common.inl: In function 'SetWindowResolution': /build/source/src/renderer_GL_common.inl:2152:5: warning: this 'if' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 2152 | if(isCurrent) | ^~ /build/source/src/renderer_GL_common.inl:2155:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 2155 | GPU_ResetProjection(target); | ^~~~~~~~~~~~~~~~~~~ /build/source/src/renderer_GL_common.inl: In function 'SetVirtualResolution': /build/source/src/renderer_GL_common.inl:2175:5: warning: this 'if' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 2175 | if(isCurrent) | ^~ /build/source/src/renderer_GL_common.inl:2178:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 2178 | GPU_ResetProjection(target); | ^~~~~~~~~~~~~~~~~~~ /build/source/src/renderer_GL_common.inl: In function 'UnsetVirtualResolution': /build/source/src/renderer_GL_common.inl:2197:5: warning: this 'if' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 2197 | if(isCurrent) | ^~ /build/source/src/renderer_GL_common.inl:2200:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 2200 | GPU_ResetProjection(target); | ^~~~~~~~~~~~~~~~~~~ In file included from /build/source/src/renderer_OpenGL_1_BASE.c:23: /build/source/src/renderer_shapes_GL_common.inl: In function 'SetLineThickness': /build/source/src/renderer_shapes_GL_common.inl:97:5: warning: this 'if' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 97 | if(renderer->current_context_target == NULL) | ^~ /build/source/src/renderer_shapes_GL_common.inl:100:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 100 | old = renderer->current_context_target->context->line_thickness; | ^~~ /build/source/src/renderer_OpenGL_1_BASE.c: In function 'GPU_CreateRenderer_OpenGL_1_BASE': /build/source/src/renderer_GL_common.inl:6993:32: error: assignment to 'GPU_Image * (*)(GPU_Renderer *, SDL_Surface *, GPU_Rect *)' from incompatible pointer type 'GPU_Image * (*)(GPU_Renderer *, SDL_Surface *, const GPU_Rect *)' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wincompatible-pointer-types-Wincompatible-pointer-types8;;] 6993 | impl->CopyImageFromSurface = &CopyImageFromSurface; \ | ^ /build/source/src/renderer_OpenGL_1_BASE.c:47:5: note: in expansion of macro 'SET_COMMON_FUNCTIONS' 47 | SET_COMMON_FUNCTIONS(renderer->impl); | ^~~~~~~~~~~~~~~~~~~~ make[2]: *** [src/CMakeFiles/SDL_gpu.dir/build.make:149: src/CMakeFiles/SDL_gpu.dir/renderer_OpenGL_1_BASE.c.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [CMakeFiles/Makefile2:211: src/CMakeFiles/SDL_gpu.dir/all] Error 2 make: *** [Makefile:136: all] Error 2