[gtk/wip/baedert/for-master: 2/2] gdk loaders: Add noreturn attribtues where appropriate
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 2/2] gdk loaders: Add noreturn attribtues where appropriate
- Date: Sat, 2 Oct 2021 07:09:54 +0000 (UTC)
commit 1efccfcced718bedec786eedb362f51b163ab4aa
Author: Timm Bäder <mail baedert org>
Date: Sun Sep 19 11:00:07 2021 +0200
gdk loaders: Add noreturn attribtues where appropriate
gdk/loaders/gdkjpeg.c | 2 +-
gdk/loaders/gdkpng.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/loaders/gdkjpeg.c b/gdk/loaders/gdkjpeg.c
index 68832de078..b7c3bbacd5 100644
--- a/gdk/loaders/gdkjpeg.c
+++ b/gdk/loaders/gdkjpeg.c
@@ -44,7 +44,7 @@ struct error_handler_data {
GError **error;
};
-static void
+G_GNUC_NORETURN static void
fatal_error_handler (j_common_ptr cinfo)
{
struct error_handler_data *errmgr;
diff --git a/gdk/loaders/gdkpng.c b/gdk/loaders/gdkpng.c
index 4c32533e36..97e6dfffd0 100644
--- a/gdk/loaders/gdkpng.c
+++ b/gdk/loaders/gdkpng.c
@@ -106,7 +106,7 @@ png_free_callback (png_structp o,
g_free (x);
}
-static void
+G_GNUC_NORETURN static void
png_simple_error_callback (png_structp png,
png_const_charp error_msg)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]