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

Echelon9 rhyskidd at gmail.com
Sat Oct 22 21:40:40 UTC 2016


From: Rhys Kidd <rhyskidd at gmail.com>

Box.c:245:7: error: non-void function 'DoLayout' should return a value
      [-Wreturn-type]
                    return;
                    ^
Box.c:285:6: error: non-void function 'DoLayout' should return a value
      [-Wreturn-type]
                    return;
                    ^

Signed-off-by: Rhys Kidd <rhyskidd at gmail.com>
---
 xts5/src/libXtTest/box.c | 2 +-
 xts5/src/libXtaw/Box.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/xts5/src/libXtTest/box.c b/xts5/src/libXtTest/box.c
index 6383e59..d3674ce 100644
--- a/xts5/src/libXtTest/box.c
+++ b/xts5/src/libXtTest/box.c
@@ -182,7 +182,7 @@ WidgetClass boxWidgetClass = (WidgetClass)&boxClassRec;
  *
  */
 
-static DoLayout(bbw, width, height, reply_width, reply_height, position)
+static void DoLayout(bbw, width, height, reply_width, reply_height, position)
     BoxWidget	bbw;
     Dimension	width, height;
     Dimension	*reply_width, *reply_height; /* bounding box */
diff --git a/xts5/src/libXtaw/Box.c b/xts5/src/libXtaw/Box.c
index feecbc3..d56e44d 100644
--- a/xts5/src/libXtaw/Box.c
+++ b/xts5/src/libXtaw/Box.c
@@ -196,7 +196,7 @@ WidgetClass boxWidgetClass = (WidgetClass)&boxClassRec;
  *
  */
 
-static DoLayout(bbw, width, height, reply_width, reply_height, position)
+static void DoLayout(bbw, width, height, reply_width, reply_height, position)
     BoxWidget	bbw;
     Dimension	width, height;
     Dimension	*reply_width, *reply_height; /* bounding box */
-- 
2.9.3



More information about the xorg-devel mailing list