From 79e4695b70d521cb9a5692f7071d49ee7f478312 Mon Sep 17 00:00:00 2001 From: Matthew Endsley Date: Fri, 27 Mar 2015 21:29:55 -0700 Subject: [PATCH] Fix C99 example for MSVC toolchains The existing code is valid C99, however there only C99 specific feature used that is incompatible with the MSVC C compiler is the relaxed variable declaration rules. --- examples/25-c99/helloworld.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/25-c99/helloworld.c b/examples/25-c99/helloworld.c index b3862ebd..0eaf81b6 100644 --- a/examples/25-c99/helloworld.c +++ b/examples/25-c99/helloworld.c @@ -15,12 +15,12 @@ uint16_t uint16_max(uint16_t _a, uint16_t _b) int _main_(int _argc, char** _argv) { - (void)_argc; - (void)_argv; uint32_t width = 1280; uint32_t height = 720; uint32_t debug = BGFX_DEBUG_TEXT; uint32_t reset = BGFX_RESET_VSYNC; + (void)_argc; + (void)_argv; bgfx_init(BGFX_RENDERER_TYPE_COUNT, NULL, NULL); bgfx_reset(width, height, reset);