From bc0ab75bcf390d0512f674fe81887e8b092634c0 Mon Sep 17 00:00:00 2001 From: Petr Kraus Date: Sat, 9 Dec 2017 00:22:39 +0100 Subject: build: Clear some compiler warnings - remove unnecessary ";" after function definitions and namespaces - fix wrong type match in printf for handle types - convert some left-overs to `HandleToUint64` --- demos/cube.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'demos/cube.cpp') diff --git a/demos/cube.cpp b/demos/cube.cpp index 641289dc..ef90220a 100644 --- a/demos/cube.cpp +++ b/demos/cube.cpp @@ -25,6 +25,7 @@ #endif #include +#include #include #include #include @@ -920,7 +921,7 @@ Demo::Demo() continue; } if (strcmp(argv[i], "--c") == 0 && frameCount == UINT32_MAX && i < argc - 1 && - sscanf(argv[i + 1], "%d", &frameCount) == 1) { + sscanf(argv[i + 1], "%" SCNu32, &frameCount) == 1) { i++; continue; } @@ -2350,7 +2351,7 @@ Demo::Demo() } } while (!strncmp(header, "#", 1)); - sscanf(header, "%u %u", width, height); + sscanf(header, "%" SCNd32 " %" SCNd32, width, height); if (rgba_data == nullptr) { fclose(fPtr); return true; -- cgit v1.2.3