From 69088d46ac11033b6ff677a6ec3c055b17b625b1 Mon Sep 17 00:00:00 2001 From: Andress Barajas Date: Tue, 12 Nov 2024 11:54:31 -0800 Subject: [PATCH] Fix example warnings --- examples/dreamcast/cpp/concurrency/Makefile | 2 +- examples/dreamcast/gldc/benchmarks/quadmark/quadmark.c | 2 +- examples/dreamcast/gldc/benchmarks/trimark/trimark.c | 2 +- examples/dreamcast/gldc/benchmarks/tristripmark/tristripmark.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/dreamcast/cpp/concurrency/Makefile b/examples/dreamcast/cpp/concurrency/Makefile index 3ace6f9d2..5085ecc25 100644 --- a/examples/dreamcast/cpp/concurrency/Makefile +++ b/examples/dreamcast/cpp/concurrency/Makefile @@ -5,7 +5,7 @@ TARGET = concurrency.elf OBJS = concurrency.o -KOS_CPPFLAGS += -std=c++20 +KOS_CPPFLAGS += -std=c++20 -Wno-dangling-pointer KOS_GCCVER_MIN = 12.0.0 include $(KOS_BASE)/Makefile.rules diff --git a/examples/dreamcast/gldc/benchmarks/quadmark/quadmark.c b/examples/dreamcast/gldc/benchmarks/quadmark/quadmark.c index e695aacd0..70dbc651c 100644 --- a/examples/dreamcast/gldc/benchmarks/quadmark/quadmark.c +++ b/examples/dreamcast/gldc/benchmarks/quadmark/quadmark.c @@ -39,7 +39,7 @@ void stats(void) { pvr_stats_t stats; pvr_get_stats(&stats); - dbglog(DBG_DEBUG, "3D Stats: %ld VBLs, frame rate ~%f fps\n", + dbglog(DBG_DEBUG, "3D Stats: %d VBLs, frame rate ~%f fps\n", stats.vbl_count, stats.frame_rate); } diff --git a/examples/dreamcast/gldc/benchmarks/trimark/trimark.c b/examples/dreamcast/gldc/benchmarks/trimark/trimark.c index a6e874e5c..83d6273ee 100644 --- a/examples/dreamcast/gldc/benchmarks/trimark/trimark.c +++ b/examples/dreamcast/gldc/benchmarks/trimark/trimark.c @@ -39,7 +39,7 @@ void stats(void) { pvr_stats_t stats; pvr_get_stats(&stats); - dbglog(DBG_DEBUG, "3D Stats: %ld VBLs, frame rate ~%f fps\n", + dbglog(DBG_DEBUG, "3D Stats: %d VBLs, frame rate ~%f fps\n", stats.vbl_count, stats.frame_rate); } diff --git a/examples/dreamcast/gldc/benchmarks/tristripmark/tristripmark.c b/examples/dreamcast/gldc/benchmarks/tristripmark/tristripmark.c index 12f2690f1..aa4b9a0d2 100644 --- a/examples/dreamcast/gldc/benchmarks/tristripmark/tristripmark.c +++ b/examples/dreamcast/gldc/benchmarks/tristripmark/tristripmark.c @@ -39,7 +39,7 @@ void stats(void) { pvr_stats_t stats; pvr_get_stats(&stats); - dbglog(DBG_DEBUG, "3D Stats: %ld VBLs, frame rate ~%f fps\n", + dbglog(DBG_DEBUG, "3D Stats: %d VBLs, frame rate ~%f fps\n", stats.vbl_count, stats.frame_rate); }