From aaf934eb2fdb76a57520eda35f77e27e1c149722 Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Wed, 4 Apr 2012 12:41:38 +0100 Subject: [PATCH] Compiler food. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit main.c: In function ‘RelaunchWindow’: main.c:461:1: warning: control reaches end of non-void function [-Wreturn-type] Actually we can't reach the end of the function because the three possible cases are Exit(-1), return False and return True. Of course if Exit() were ever changed the above statement might become incorrect. Some compiler food silences the warning. --- src/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.c b/src/main.c index 7d44983a..6696c2ce 100644 --- a/src/main.c +++ b/src/main.c @@ -458,6 +458,8 @@ Bool RelaunchWindow(WWindow *wwin) return True; } + /* compiler food */ + return True; } /*