[PATCH xts] xts5: Fix clang warning - non-void function FillArea should return a value

Rhys Kidd rhyskidd at gmail.com
Sat Oct 29 19:59:54 UTC 2016


Scrollbar.c:282:21: error: non-void function 'FillArea' should return a value
      [-Wreturn-type]
    if (bottom < 0) return;
                    ^

Signed-off-by: Rhys Kidd <rhyskidd at gmail.com>
---
 xts5/src/libXtaw/Scrollbar.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xts5/src/libXtaw/Scrollbar.c b/xts5/src/libXtaw/Scrollbar.c
index c5ed7f1..5c783d6 100644
--- a/xts5/src/libXtaw/Scrollbar.c
+++ b/xts5/src/libXtaw/Scrollbar.c
@@ -272,7 +272,7 @@ static float FractionLoc(w, x, y)
 }
 
 
-static FillArea(w, top, bottom, thumb)
+static void FillArea(w, top, bottom, thumb)
   ScrollbarWidget w;
   Position top, bottom;
   int thumb;
-- 
2.9.3



More information about the xorg-devel mailing list