Skip to content

Commit 743d271

Browse files
committed
Avoid compiler warning:
warning: function might be candidate for attribute "noreturn" [-Wsuggest-attribute=noreturn]
1 parent 9d513fe commit 743d271

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ext/native/posix_serialport_impl.c

+2-4
Original file line numberDiff line numberDiff line change
@@ -602,16 +602,14 @@ VALUE sp_get_read_timeout_impl(VALUE self)
602602
return INT2FIX(params.c_cc[VTIME] * 100);
603603
}
604604

605-
VALUE sp_set_write_timeout_impl(VALUE self, VALUE val)
605+
NORETURN(VALUE sp_set_write_timeout_impl(VALUE self, VALUE val))
606606
{
607607
rb_notimplement();
608-
return self;
609608
}
610609

611-
VALUE sp_get_write_timeout_impl(VALUE self)
610+
NORETURN(VALUE sp_get_write_timeout_impl(VALUE self))
612611
{
613612
rb_notimplement();
614-
return self;
615613
}
616614

617615
VALUE sp_break_impl(VALUE self, VALUE time)

0 commit comments

Comments
 (0)