Quoth Carlos R. Mafra,

main.c: In function ‘RelaunchWindow’:
main.c:461:1: warning: control reaches end of non-void function [-Wreturn-type]

  Bah.
From 16a117aacc5e9d9ee76b10008a70e745ba8f3aca Mon Sep 17 00:00:00 2001
From: Iain Patterson <[email protected]>
Date: Wed, 4 Apr 2012 12:41:38 +0100
Subject: [PATCH 5/5] 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 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/main.c b/src/main.c
index 7d44983..6696c2c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -458,6 +458,8 @@ Bool RelaunchWindow(WWindow *wwin)
                return True;
        }
 
+       /* compiler food */
+       return True;
 }
 
 /*
-- 
1.7.7.6

Reply via email to