[PATCH] windows.c: prevent an undefined warning
Lubomir I. Ivanov
neolit123 at gmail.com
Wed Apr 2 12:42:44 PDT 2014
From: "Lubomir I. Ivanov" <neolit123 at gmail.com>
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 <neolit123 at gmail.com>
---
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
More information about the subsurface
mailing list