xrt: Fail to build with Clang 16

This commit is contained in:
samuel degrande 2023-05-16 14:25:36 +00:00 committed by Jakob Bornecrantz
parent 2f4a926184
commit ea7ec1bda8
4 changed files with 5 additions and 4 deletions

View file

@ -282,7 +282,7 @@ u_win_raise_cpu_priority(enum u_logging_level log_level)
}
void
u_win_try_privilege_or_priority_from_args(enum u_logging_level log_level, int argc, char const *argv[])
u_win_try_privilege_or_priority_from_args(enum u_logging_level log_level, int argc, char *argv[])
{
if (argc > 1 && strcmp(argv[1], "nothing") == 0) {
LOG_I("Not trying privileges or priority");

View file

@ -12,6 +12,7 @@
#include "xrt/xrt_compiler.h"
#include "xrt/xrt_windows.h"
#include "util/u_logging.h"
#ifdef __cplusplus
@ -63,7 +64,7 @@ u_win_raise_cpu_priority(enum u_logging_level log_level);
* @param argv Array of argument strings, as passed into main.
*/
void
u_win_try_privilege_or_priority_from_args(enum u_logging_level log_level, int argc, char const *argv[]);
u_win_try_privilege_or_priority_from_args(enum u_logging_level log_level, int argc, char *argv[]);
#ifdef __cplusplus

View file

@ -337,7 +337,7 @@ swapchain_server_import(struct ipc_client_compositor *icc,
// DXGI handles need to be dealt with differently, they are identified
// by having their lower bit set to 1 during transfer
if (native_images[i].is_dxgi_handle) {
(size_t) handles[i] |= 1;
handles[i] = (void *)((size_t)handles[i] | 1);
}
#endif
}

View file

@ -79,7 +79,7 @@ post_init_setup(struct sdl_swapchain *ssc, struct sdl_program *sp, const struct
ssc->memory[i], //
ssc->base.base.images[i].size, //
GL_HANDLE_TYPE_OPAQUE_FD_EXT, //
handle); //
(GLint)handle); //
CHECK_GL();
if (info->array_size == 1) {