summaryrefslogtreecommitdiffstats
path: root/windows.c
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2014-04-02 22:42:44 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-04-02 19:05:00 -0700
commite372e819e7db5e288ec07ff4feee1644806f4238 (patch)
tree77a0d45aa204f6196d289d06702d02bb57195a6b /windows.c
parent59912568d01033992aca53a0d91834c65a7349ca (diff)
downloadsubsurface-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.c1
1 files changed, 1 insertions, 0 deletions
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 */