mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
xrt: Fail to build with Clang 16
This commit is contained in:
parent
2f4a926184
commit
ea7ec1bda8
|
@ -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");
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue