From 743d2712848cb4bf8985905f9420fb73c6167ff0 Mon Sep 17 00:00:00 2001
From: Lars Kanis <lars.kanis@sincnovation.com>
Date: Thu, 13 Feb 2025 10:16:26 +0100
Subject: [PATCH 09/10] Avoid compiler warning:

warning: function might be candidate for attribute "noreturn" [-Wsuggest-attribute=noreturn]
---
 ext/native/posix_serialport_impl.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/ext/native/posix_serialport_impl.c b/ext/native/posix_serialport_impl.c
index 0681131..f4309cd 100644
--- a/ext/native/posix_serialport_impl.c
+++ b/ext/native/posix_serialport_impl.c
@@ -602,16 +602,14 @@ VALUE sp_get_read_timeout_impl(VALUE self)
    return INT2FIX(params.c_cc[VTIME] * 100);
 }
 
-VALUE sp_set_write_timeout_impl(VALUE self, VALUE val)
+NORETURN(VALUE sp_set_write_timeout_impl(VALUE self, VALUE val))
 {
    rb_notimplement();
-   return self;
 }
 
-VALUE sp_get_write_timeout_impl(VALUE self)
+NORETURN(VALUE sp_get_write_timeout_impl(VALUE self))
 {
    rb_notimplement();
-   return self;
 }
 
 VALUE sp_break_impl(VALUE self, VALUE time)
-- 
2.39.5

