[PATCH] WINGs: fix compiler warnings on fontl example

0 views
Skip to first unread message

david.m...@gmail.com

unread,
Feb 14, 2026, 10:21:34 AM (10 days ago) Feb 14
to Window Maker Development
The patch is fixing some compiler warnings about missing
noreturn keyword.
---
 WINGs/Examples/fontl.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/WINGs/Examples/fontl.c b/WINGs/Examples/fontl.c
index a440a22c..39cdb1d5 100644
--- a/WINGs/Examples/fontl.c
+++ b/WINGs/Examples/fontl.c
@@ -24,8 +24,9 @@
 #include <WINGs/WINGs.h>
 #include <WINGs/WUtil.h>
 #include <inttypes.h>
+#include <stdnoreturn.h>
 
-void wAbort()
+noreturn void wAbort(void)
 {
  exit(0);
 }
@@ -40,7 +41,7 @@ void show(WMWidget * self, void *data)
  WMSetLabelText(l, buf);
 }
 
-void quit(WMWidget * self, void *data)
+noreturn void quit(WMWidget * self, void *data)
 {
  (void) self;
  (void) data;
--
2.43.0
0001-WINGs-fix-compiler-warnings-on-fontl-example.patch
Reply all
Reply to author
Forward
0 new messages