From: "Lubomir I. Ivanov" <[email protected]>

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 <[email protected]>
---
 windows.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/windows.c b/windows.c
index 99720cf..5a77071 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 */
-- 
1.7.11.msysgit.0

_______________________________________________
subsurface mailing list
[email protected]
http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to