[glib: 1/3] gregex: Remove an unreachable return statement
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/3] gregex: Remove an unreachable return statement
- Date: Tue, 18 Oct 2022 15:03:07 +0000 (UTC)
commit 4fca3bba8f38627ee13b99b0b5093b73a2052e77
Author: Philip Withnall <pwithnall endlessos org>
Date: Tue Oct 18 15:05:30 2022 +0100
gregex: Remove an unreachable return statement
Spotted by Coverity.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
Coverity CID: #1497916
glib/gregex.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/gregex.c b/glib/gregex.c
index 41ad675a76..53eda2b19d 100644
--- a/glib/gregex.c
+++ b/glib/gregex.c
@@ -947,7 +947,7 @@ enable_jit_with_match_options (GRegex *regex,
break;
}
- return regex->jit_status;
+ g_assert_not_reached ();
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]