From e372e819e7db5e288ec07ff4feee1644806f4238 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Wed, 2 Apr 2014 22:42:44 +0300 Subject: windows.c: prevent an unused warning When building with WIN32_CONSOLE_APP (or CONFIG += console) we need to fake-use console_desc or a warning will pop out. __attribute__((unused)) is available, but is GCC only. Signed-off-by: Lubomir I. Ivanov Signed-off-by: Dirk Hohndel --- windows.c | 1 + 1 file changed, 1 insertion(+) diff --git a/windows.c b/windows.c index 99720cf9d..5a7707108 100644 --- a/windows.c +++ b/windows.c @@ -210,6 +210,7 @@ static struct { void subsurface_console_init(bool dedicated) { + (void)console_desc; /* if this is a console app already, do nothing */ #ifndef WIN32_CONSOLE_APP /* just in case of multiple calls */ -- cgit v1.2.3-70-g09d2