diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2014-04-02 22:42:44 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-04-02 19:05:00 -0700 |
commit | e372e819e7db5e288ec07ff4feee1644806f4238 (patch) | |
tree | 77a0d45aa204f6196d289d06702d02bb57195a6b /windows.c | |
parent | 59912568d01033992aca53a0d91834c65a7349ca (diff) | |
download | subsurface-e372e819e7db5e288ec07ff4feee1644806f4238.tar.gz |
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>
Diffstat (limited to 'windows.c')
-rw-r--r-- | windows.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 */ |