Fix some more warnings reported by CI
Fixes the following Clang 7 warnings: ``` core/io/marshalls.cpp:872:10: warning: unused variable 'f' [-Wunused-variable] core/ustring.cpp:1831:2: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register] core/ustring.cpp:1832:2: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register] drivers/gles3/rasterizer_gles3.cpp:82:24: warning: unused function '_gl_debug_print' [-Wunused-function,34] main/main.cpp:118:13: warning: unused variable 'auto_build_solutions' [-Wunused-variable] modules/csg/csg_gizmos.cpp:225:46: warning: 'current' may be used uninitialized in this function [-Wmaybe-uninitialized] ```
This commit is contained in:
parent
723e2e9654
commit
6ab78d9ffb
5 changed files with 9 additions and 6 deletions
|
|
@ -73,6 +73,8 @@ RasterizerScene *RasterizerGLES3::get_scene() {
|
|||
#define _EXT_DEBUG_SEVERITY_LOW_ARB 0x9148
|
||||
#define _EXT_DEBUG_OUTPUT 0x92E0
|
||||
|
||||
#ifdef GLAD_ENABLED
|
||||
// Restricting to GLAD as only used in initialize() with GLAD_GL_ARB_debug_output
|
||||
#if (defined WINDOWS_ENABLED) && !(defined UWP_ENABLED)
|
||||
#define GLAPIENTRY APIENTRY
|
||||
#else
|
||||
|
|
@ -123,6 +125,7 @@ static void GLAPIENTRY _gl_debug_print(GLenum source, GLenum type, GLuint id, GL
|
|||
|
||||
ERR_PRINTS(output);
|
||||
}
|
||||
#endif // GLAD_ENABLED
|
||||
|
||||
typedef void (*DEBUGPROCARB)(GLenum source,
|
||||
GLenum type,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue