[PATCH:xts 09/16] xts5: Return a dummy value.

Cyril Brulebois kibi at debian.org
Wed May 25 04:00:18 PDT 2011


Since it's too late already when this function is called, let's return
something to match the prototype.

This warning goes away accordingly:
|   CC     err.lo
| err.c:180:1: warning: control reaches end of non-void function [-Wreturn-type]
| }
| ^

Signed-off-by: Cyril Brulebois <kibi at debian.org>
---
 xts5/src/lib/err.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/xts5/src/lib/err.c b/xts5/src/lib/err.c
index 22c747c..ef46629 100644
--- a/xts5/src/lib/err.c
+++ b/xts5/src/lib/err.c
@@ -177,6 +177,7 @@ char	text[TEXTLEN];
 
 	/* Cause to test to not pass */
 	delete("Unexpected Xlib error");
+	return(0);
 }
 
 /*
-- 
1.7.5.1



More information about the xorg-devel mailing list