[PATCH 2/6] os/utils.c: Fix compilation of OsBlockSIGIO when SIGIO isn't defined

Jon TURNEY jon.turney at dronecode.org.uk
Tue Nov 13 05:40:47 PST 2012


Fix compilation of OsBlockSIGIO with -Werror=return-type when SIGIO isn't
defined.

/jhbuild/checkout/xorg/xserver/os/utils.c: In function 'OsBlockSIGIO':
/jhbuild/checkout/xorg/xserver/os/utils.c:1248:1: error: control reaches end of non-void function [-Wreturn-type]

Signed-off-by: Jon TURNEY <jon.turney at dronecode.org.uk>
Tested-by: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>
---
 os/utils.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/os/utils.c b/os/utils.c
index 58df709..d6c6ebb 100644
--- a/os/utils.c
+++ b/os/utils.c
@@ -1235,6 +1235,7 @@ OsBlockSIGIO(void)
         return 1;
 #endif
 #endif
+    return 1;
 }
 
 void
-- 
1.7.9



More information about the xorg-devel mailing list