From c06f9cfe60a784f5265c79576bcc08f470bbcb91 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sun, 26 Feb 2023 19:35:33 +0100 Subject: [PATCH] Fix naveditor compiler warning Use correct format specifier for size types, and return a value in 'sdl_init'. --- r5dev/naveditor/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/r5dev/naveditor/main.cpp b/r5dev/naveditor/main.cpp index 2cf16028..dda4ebe6 100644 --- a/r5dev/naveditor/main.cpp +++ b/r5dev/naveditor/main.cpp @@ -48,14 +48,14 @@ void save_ply(std::vector& pts,std::vector& colors,rcIntArray& tris) fprintf(f, R"(ply format ascii 1.0 -element vertex %d +element vertex %zu property float x property float y property float z property uchar red property uchar green property uchar blue -element face %d +element face %zu property list uchar int vertex_index end_header )",pts.size()/3,tris.size()/3); @@ -221,6 +221,8 @@ bool sdl_init(SDL_Window*& window, SDL_Renderer*& renderer, int &width, int &hei SDL_Quit(); return false; } + + return true; } #if 1