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 <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Lubomir I. Ivanov 2014-04-02 22:42:44 +03:00 committed by Dirk Hohndel
parent 59912568d0
commit e372e819e7

View file

@ -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 */