Failing to Build with GCC15 error: implicit declaration of function ‘tanf’, 'sqrt'
Fedora recently merged GCC15 into Rawhide. openxr-simple-playground is now failing to build:
/usr/bin/gcc -I/usr/include/SDL2 -I/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/external/openxr_headers -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -pedantic -Wall -Wextra -Wno-unused-parameter -MD -MT CMakeFiles/openxr-playground.dir/main.c.o -MF CMakeFiles/openxr-playground.dir/main.c.o.d -o CMakeFiles/openxr-playground.dir/main.c.o -c /builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c: In function ‘init_gl_funcs’:
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:87:41: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
87 | #define LOAD_GL_FUNC(TYPE, FUNC) FUNC = (TYPE)SDL_GL_GetProcAddress(#FUNC);
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:90:9: note: in expansion of macro ‘LOAD_GL_FUNC’
90 | _(PFNGLDELETEFRAMEBUFFERSPROC, glDeleteFramebuffers) \
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:132:9: note: in expansion of macro ‘FOR_EACH_GL_FUNC’
132 | FOR_EACH_GL_FUNC(LOAD_GL_FUNC)
| ^~~~~~~~~~~~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:87:41: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
87 | #define LOAD_GL_FUNC(TYPE, FUNC) FUNC = (TYPE)SDL_GL_GetProcAddress(#FUNC);
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:91:9: note: in expansion of macro ‘LOAD_GL_FUNC’
91 | _(PFNGLDEBUGMESSAGECALLBACKPROC, glDebugMessageCallback) \
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:132:9: note: in expansion of macro ‘FOR_EACH_GL_FUNC’
132 | FOR_EACH_GL_FUNC(LOAD_GL_FUNC)
| ^~~~~~~~~~~~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:87:41: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
87 | #define LOAD_GL_FUNC(TYPE, FUNC) FUNC = (TYPE)SDL_GL_GetProcAddress(#FUNC);
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:92:9: note: in expansion of macro ‘LOAD_GL_FUNC’
92 | _(PFNGLGENFRAMEBUFFERSPROC, glGenFramebuffers) \
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:132:9: note: in expansion of macro ‘FOR_EACH_GL_FUNC’
132 | FOR_EACH_GL_FUNC(LOAD_GL_FUNC)
| ^~~~~~~~~~~~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:87:41: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
87 | #define LOAD_GL_FUNC(TYPE, FUNC) FUNC = (TYPE)SDL_GL_GetProcAddress(#FUNC);
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:93:9: note: in expansion of macro ‘LOAD_GL_FUNC’
93 | _(PFNGLCREATESHADERPROC, glCreateShader) \
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:132:9: note: in expansion of macro ‘FOR_EACH_GL_FUNC’
132 | FOR_EACH_GL_FUNC(LOAD_GL_FUNC)
| ^~~~~~~~~~~~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:87:41: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
87 | #define LOAD_GL_FUNC(TYPE, FUNC) FUNC = (TYPE)SDL_GL_GetProcAddress(#FUNC);
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:94:9: note: in expansion of macro ‘LOAD_GL_FUNC’
94 | _(PFNGLSHADERSOURCEPROC, glShaderSource) \
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:132:9: note: in expansion of macro ‘FOR_EACH_GL_FUNC’
132 | FOR_EACH_GL_FUNC(LOAD_GL_FUNC)
| ^~~~~~~~~~~~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:87:41: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
87 | #define LOAD_GL_FUNC(TYPE, FUNC) FUNC = (TYPE)SDL_GL_GetProcAddress(#FUNC);
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:95:9: note: in expansion of macro ‘LOAD_GL_FUNC’
95 | _(PFNGLCOMPILESHADERPROC, glCompileShader) \
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:132:9: note: in expansion of macro ‘FOR_EACH_GL_FUNC’
132 | FOR_EACH_GL_FUNC(LOAD_GL_FUNC)
| ^~~~~~~~~~~~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:87:41: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
87 | #define LOAD_GL_FUNC(TYPE, FUNC) FUNC = (TYPE)SDL_GL_GetProcAddress(#FUNC);
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:96:9: note: in expansion of macro ‘LOAD_GL_FUNC’
96 | _(PFNGLGETSHADERIVPROC, glGetShaderiv) \
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:132:9: note: in expansion of macro ‘FOR_EACH_GL_FUNC’
132 | FOR_EACH_GL_FUNC(LOAD_GL_FUNC)
| ^~~~~~~~~~~~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:87:41: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
87 | #define LOAD_GL_FUNC(TYPE, FUNC) FUNC = (TYPE)SDL_GL_GetProcAddress(#FUNC);
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:97:9: note: in expansion of macro ‘LOAD_GL_FUNC’
97 | _(PFNGLGETSHADERINFOLOGPROC, glGetShaderInfoLog) \
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:132:9: note: in expansion of macro ‘FOR_EACH_GL_FUNC’
132 | FOR_EACH_GL_FUNC(LOAD_GL_FUNC)
| ^~~~~~~~~~~~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:87:41: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
87 | #define LOAD_GL_FUNC(TYPE, FUNC) FUNC = (TYPE)SDL_GL_GetProcAddress(#FUNC);
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:98:9: note: in expansion of macro ‘LOAD_GL_FUNC’
98 | _(PFNGLCREATEPROGRAMPROC, glCreateProgram) \
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:132:9: note: in expansion of macro ‘FOR_EACH_GL_FUNC’
132 | FOR_EACH_GL_FUNC(LOAD_GL_FUNC)
| ^~~~~~~~~~~~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:87:41: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
87 | #define LOAD_GL_FUNC(TYPE, FUNC) FUNC = (TYPE)SDL_GL_GetProcAddress(#FUNC);
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:99:9: note: in expansion of macro ‘LOAD_GL_FUNC’
99 | _(PFNGLATTACHSHADERPROC, glAttachShader) \
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:132:9: note: in expansion of macro ‘FOR_EACH_GL_FUNC’
132 | FOR_EACH_GL_FUNC(LOAD_GL_FUNC)
| ^~~~~~~~~~~~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:87:41: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
87 | #define LOAD_GL_FUNC(TYPE, FUNC) FUNC = (TYPE)SDL_GL_GetProcAddress(#FUNC);
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:100:9: note: in expansion of macro ‘LOAD_GL_FUNC’
100 | _(PFNGLLINKPROGRAMPROC, glLinkProgram) \
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:132:9: note: in expansion of macro ‘FOR_EACH_GL_FUNC’
132 | FOR_EACH_GL_FUNC(LOAD_GL_FUNC)
| ^~~~~~~~~~~~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:87:41: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
87 | #define LOAD_GL_FUNC(TYPE, FUNC) FUNC = (TYPE)SDL_GL_GetProcAddress(#FUNC);
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:101:9: note: in expansion of macro ‘LOAD_GL_FUNC’
101 | _(PFNGLGETPROGRAMIVPROC, glGetProgramiv) \
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:132:9: note: in expansion of macro ‘FOR_EACH_GL_FUNC’
132 | FOR_EACH_GL_FUNC(LOAD_GL_FUNC)
| ^~~~~~~~~~~~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:87:41: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
87 | #define LOAD_GL_FUNC(TYPE, FUNC) FUNC = (TYPE)SDL_GL_GetProcAddress(#FUNC);
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:102:9: note: in expansion of macro ‘LOAD_GL_FUNC’
102 | _(PFNGLGETPROGRAMINFOLOGPROC, glGetProgramInfoLog) \
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:132:9: note: in expansion of macro ‘FOR_EACH_GL_FUNC’
132 | FOR_EACH_GL_FUNC(LOAD_GL_FUNC)
| ^~~~~~~~~~~~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:87:41: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
87 | #define LOAD_GL_FUNC(TYPE, FUNC) FUNC = (TYPE)SDL_GL_GetProcAddress(#FUNC);
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:103:9: note: in expansion of macro ‘LOAD_GL_FUNC’
103 | _(PFNGLDELETESHADERPROC, glDeleteShader) \
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:132:9: note: in expansion of macro ‘FOR_EACH_GL_FUNC’
132 | FOR_EACH_GL_FUNC(LOAD_GL_FUNC)
| ^~~~~~~~~~~~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:87:41: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
87 | #define LOAD_GL_FUNC(TYPE, FUNC) FUNC = (TYPE)SDL_GL_GetProcAddress(#FUNC);
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:104:9: note: in expansion of macro ‘LOAD_GL_FUNC’
104 | _(PFNGLGENBUFFERSPROC, glGenBuffers) \
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:132:9: note: in expansion of macro ‘FOR_EACH_GL_FUNC’
132 | FOR_EACH_GL_FUNC(LOAD_GL_FUNC)
| ^~~~~~~~~~~~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:87:41: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
87 | #define LOAD_GL_FUNC(TYPE, FUNC) FUNC = (TYPE)SDL_GL_GetProcAddress(#FUNC);
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:105:9: note: in expansion of macro ‘LOAD_GL_FUNC’
105 | _(PFNGLGENVERTEXARRAYSPROC, glGenVertexArrays) \
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:132:9: note: in expansion of macro ‘FOR_EACH_GL_FUNC’
132 | FOR_EACH_GL_FUNC(LOAD_GL_FUNC)
| ^~~~~~~~~~~~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:87:41: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
87 | #define LOAD_GL_FUNC(TYPE, FUNC) FUNC = (TYPE)SDL_GL_GetProcAddress(#FUNC);
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:106:9: note: in expansion of macro ‘LOAD_GL_FUNC’
106 | _(PFNGLBINDVERTEXARRAYPROC, glBindVertexArray) \
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:132:9: note: in expansion of macro ‘FOR_EACH_GL_FUNC’
132 | FOR_EACH_GL_FUNC(LOAD_GL_FUNC)
| ^~~~~~~~~~~~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:87:41: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
87 | #define LOAD_GL_FUNC(TYPE, FUNC) FUNC = (TYPE)SDL_GL_GetProcAddress(#FUNC);
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:107:9: note: in expansion of macro ‘LOAD_GL_FUNC’
107 | _(PFNGLBINDBUFFERPROC, glBindBuffer) \
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:132:9: note: in expansion of macro ‘FOR_EACH_GL_FUNC’
132 | FOR_EACH_GL_FUNC(LOAD_GL_FUNC)
| ^~~~~~~~~~~~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:87:41: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
87 | #define LOAD_GL_FUNC(TYPE, FUNC) FUNC = (TYPE)SDL_GL_GetProcAddress(#FUNC);
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:108:9: note: in expansion of macro ‘LOAD_GL_FUNC’
108 | _(PFNGLBUFFERDATAPROC, glBufferData) \
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:132:9: note: in expansion of macro ‘FOR_EACH_GL_FUNC’
132 | FOR_EACH_GL_FUNC(LOAD_GL_FUNC)
| ^~~~~~~~~~~~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:87:41: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
87 | #define LOAD_GL_FUNC(TYPE, FUNC) FUNC = (TYPE)SDL_GL_GetProcAddress(#FUNC);
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:109:9: note: in expansion of macro ‘LOAD_GL_FUNC’
109 | _(PFNGLVERTEXATTRIBPOINTERPROC, glVertexAttribPointer) \
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:132:9: note: in expansion of macro ‘FOR_EACH_GL_FUNC’
132 | FOR_EACH_GL_FUNC(LOAD_GL_FUNC)
| ^~~~~~~~~~~~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:87:41: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
87 | #define LOAD_GL_FUNC(TYPE, FUNC) FUNC = (TYPE)SDL_GL_GetProcAddress(#FUNC);
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:110:9: note: in expansion of macro ‘LOAD_GL_FUNC’
110 | _(PFNGLENABLEVERTEXATTRIBARRAYPROC, glEnableVertexAttribArray) \
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:132:9: note: in expansion of macro ‘FOR_EACH_GL_FUNC’
132 | FOR_EACH_GL_FUNC(LOAD_GL_FUNC)
| ^~~~~~~~~~~~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:87:41: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
87 | #define LOAD_GL_FUNC(TYPE, FUNC) FUNC = (TYPE)SDL_GL_GetProcAddress(#FUNC);
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:111:9: note: in expansion of macro ‘LOAD_GL_FUNC’
111 | _(PFNGLGETUNIFORMLOCATIONPROC, glGetUniformLocation) \
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:132:9: note: in expansion of macro ‘FOR_EACH_GL_FUNC’
132 | FOR_EACH_GL_FUNC(LOAD_GL_FUNC)
| ^~~~~~~~~~~~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:87:41: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
87 | #define LOAD_GL_FUNC(TYPE, FUNC) FUNC = (TYPE)SDL_GL_GetProcAddress(#FUNC);
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:112:9: note: in expansion of macro ‘LOAD_GL_FUNC’
112 | _(PFNGLBINDFRAMEBUFFERPROC, glBindFramebuffer) \
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:132:9: note: in expansion of macro ‘FOR_EACH_GL_FUNC’
132 | FOR_EACH_GL_FUNC(LOAD_GL_FUNC)
| ^~~~~~~~~~~~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:87:41: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
87 | #define LOAD_GL_FUNC(TYPE, FUNC) FUNC = (TYPE)SDL_GL_GetProcAddress(#FUNC);
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:113:9: note: in expansion of macro ‘LOAD_GL_FUNC’
113 | _(PFNGLFRAMEBUFFERTEXTURE2DPROC, glFramebufferTexture2D) \
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:132:9: note: in expansion of macro ‘FOR_EACH_GL_FUNC’
132 | FOR_EACH_GL_FUNC(LOAD_GL_FUNC)
| ^~~~~~~~~~~~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:87:41: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
87 | #define LOAD_GL_FUNC(TYPE, FUNC) FUNC = (TYPE)SDL_GL_GetProcAddress(#FUNC);
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:114:9: note: in expansion of macro ‘LOAD_GL_FUNC’
114 | _(PFNGLUSEPROGRAMPROC, glUseProgram) \
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:132:9: note: in expansion of macro ‘FOR_EACH_GL_FUNC’
132 | FOR_EACH_GL_FUNC(LOAD_GL_FUNC)
| ^~~~~~~~~~~~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:87:41: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
87 | #define LOAD_GL_FUNC(TYPE, FUNC) FUNC = (TYPE)SDL_GL_GetProcAddress(#FUNC);
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:115:9: note: in expansion of macro ‘LOAD_GL_FUNC’
115 | _(PFNGLUNIFORMMATRIX4FVPROC, glUniformMatrix4fv) \
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:132:9: note: in expansion of macro ‘FOR_EACH_GL_FUNC’
132 | FOR_EACH_GL_FUNC(LOAD_GL_FUNC)
| ^~~~~~~~~~~~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:87:41: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
87 | #define LOAD_GL_FUNC(TYPE, FUNC) FUNC = (TYPE)SDL_GL_GetProcAddress(#FUNC);
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:116:9: note: in expansion of macro ‘LOAD_GL_FUNC’
116 | _(PFNGLBLITNAMEDFRAMEBUFFERPROC, glBlitNamedFramebuffer) \
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:132:9: note: in expansion of macro ‘FOR_EACH_GL_FUNC’
132 | FOR_EACH_GL_FUNC(LOAD_GL_FUNC)
| ^~~~~~~~~~~~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:87:41: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
87 | #define LOAD_GL_FUNC(TYPE, FUNC) FUNC = (TYPE)SDL_GL_GetProcAddress(#FUNC);
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:117:9: note: in expansion of macro ‘LOAD_GL_FUNC’
117 | _(PFNGLUNIFORM4FPROC, glUniform4f) \
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:132:9: note: in expansion of macro ‘FOR_EACH_GL_FUNC’
132 | FOR_EACH_GL_FUNC(LOAD_GL_FUNC)
| ^~~~~~~~~~~~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:87:41: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
87 | #define LOAD_GL_FUNC(TYPE, FUNC) FUNC = (TYPE)SDL_GL_GetProcAddress(#FUNC);
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:118:9: note: in expansion of macro ‘LOAD_GL_FUNC’
118 | _(PFNGLACTIVETEXTUREPROC, glActiveTextureARB) \
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:132:9: note: in expansion of macro ‘FOR_EACH_GL_FUNC’
132 | FOR_EACH_GL_FUNC(LOAD_GL_FUNC)
| ^~~~~~~~~~~~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:87:41: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
87 | #define LOAD_GL_FUNC(TYPE, FUNC) FUNC = (TYPE)SDL_GL_GetProcAddress(#FUNC);
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:119:9: note: in expansion of macro ‘LOAD_GL_FUNC’
119 | _(PFNGLUNIFORM1IPROC, glUniform1i)
| ^
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:132:9: note: in expansion of macro ‘FOR_EACH_GL_FUNC’
132 | FOR_EACH_GL_FUNC(LOAD_GL_FUNC)
| ^~~~~~~~~~~~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c: In function ‘XrMatrix4x4f_CreateProjectionFov’:
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:250:36: error: implicit declaration of function ‘tanf’ [-Wimplicit-function-declaration]
250 | const float tanAngleLeft = tanf(fov.angleLeft);
| ^~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:145:1: note: include ‘<math.h>’ or provide a declaration of ‘tanf’
144 | #include "external/openxr_headers/XR_MNDX_xdev_space.h"
+++ |+#include <math.h>
145 |
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:250:36: warning: incompatible implicit declaration of built-in function ‘tanf’ [-Wbuiltin-declaration-mismatch]
250 | const float tanAngleLeft = tanf(fov.angleLeft);
| ^~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:250:36: note: include ‘<math.h>’ or provide a declaration of ‘tanf’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c: In function ‘destroy_xdev_space_list’:
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:979:18: warning: unused variable ‘result’ [-Wunused-variable]
979 | XrResult result = XR_SUCCESS;
| ^~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c: In function ‘parse_opts’:
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:1924:83: error: implicit declaration of function ‘sqrt’ [-Wimplicit-function-declaration]
1924 | app->cube.velocity = (XrVector3f){.x = velocity * sqrt(2), .y = velocity * sqrt(2), .z = 0};
| ^~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:1924:83: note: include ‘<math.h>’ or provide a declaration of ‘sqrt’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:1924:83: warning: incompatible implicit declaration of built-in function ‘sqrt’ [-Wbuiltin-declaration-mismatch]
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:1924:83: note: include ‘<math.h>’ or provide a declaration of ‘sqrt’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c: In function ‘render_frame’:
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:3869:30: warning: variable ‘any_joints_valid’ set but not used [-Wunused-but-set-variable]
3869 | bool any_joints_valid = false;
| ^~~~~~~~~~~~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c: At top level:
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:3632:15: warning: ‘colors’ defined but not used [-Wunused-variable]
3632 | static vec3_t colors[] = {
| ^~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-f4105c7498460cc8d2fe109ee93ed9f48d81ef41/main.c:207:1: warning: ‘get_ts_s’ defined but not used [-Wunused-function]
207 | get_ts_s()
| ^~~~~~~~