mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-06 13:58:40 +00:00
fix build warnings for clang
This commit is contained in:
committed by
Ryan Fleury
parent
b1e2ca0ff8
commit
f7897aecea
@@ -176,7 +176,7 @@ r_init(CmdLine *cmdln)
|
|||||||
if(FAILED(error))
|
if(FAILED(error))
|
||||||
{
|
{
|
||||||
char buffer[256] = {0};
|
char buffer[256] = {0};
|
||||||
raddbg_snprintf(buffer, sizeof(buffer), "D3D11 device creation failure (%x). The process is terminating.", error);
|
raddbg_snprintf(buffer, sizeof(buffer), "D3D11 device creation failure (%lx). The process is terminating.", error);
|
||||||
os_graphical_message(1, str8_lit("Fatal Error"), str8_cstring(buffer));
|
os_graphical_message(1, str8_lit("Fatal Error"), str8_cstring(buffer));
|
||||||
os_exit_process(1);
|
os_exit_process(1);
|
||||||
}
|
}
|
||||||
@@ -483,7 +483,7 @@ r_window_equip(OS_Handle handle)
|
|||||||
if(FAILED(error))
|
if(FAILED(error))
|
||||||
{
|
{
|
||||||
char buffer[256] = {0};
|
char buffer[256] = {0};
|
||||||
raddbg_snprintf(buffer, sizeof(buffer), "DXGI swap chain creation failure (%x). The process is terminating.", error);
|
raddbg_snprintf(buffer, sizeof(buffer), "DXGI swap chain creation failure (%lx). The process is terminating.", error);
|
||||||
os_graphical_message(1, str8_lit("Fatal Error"), str8_cstring(buffer));
|
os_graphical_message(1, str8_lit("Fatal Error"), str8_cstring(buffer));
|
||||||
os_exit_process(1);
|
os_exit_process(1);
|
||||||
}
|
}
|
||||||
@@ -998,7 +998,7 @@ r_window_end_frame(OS_Handle window, R_Handle window_equip)
|
|||||||
if(FAILED(error))
|
if(FAILED(error))
|
||||||
{
|
{
|
||||||
char buffer[256] = {0};
|
char buffer[256] = {0};
|
||||||
raddbg_snprintf(buffer, sizeof(buffer), "D3D11 present failure (%x). The process is terminating.", error);
|
raddbg_snprintf(buffer, sizeof(buffer), "D3D11 present failure (%lx). The process is terminating.", error);
|
||||||
os_graphical_message(1, str8_lit("Fatal Error"), str8_cstring(buffer));
|
os_graphical_message(1, str8_lit("Fatal Error"), str8_cstring(buffer));
|
||||||
os_exit_process(1);
|
os_exit_process(1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user