From: Jim Meyering Date: Mon, 31 Aug 2009 18:29:08 +0000 (+0200) Subject: maint: guestfs.c: avoid warning about possible NULL deref from llvm/clang X-Git-Tag: 1.0.69~20 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=97ef6a82ed32404b751a23b6658e0f9c7ab3298c;p=libguestfs.git maint: guestfs.c: avoid warning about possible NULL deref from llvm/clang * src/guestfs.h (guestfs_abort_cb): Declare with attribute noreturn. --- diff --git a/src/guestfs.h b/src/guestfs.h index f2e108b..6412a53 100644 --- a/src/guestfs.h +++ b/src/guestfs.h @@ -41,7 +41,7 @@ extern void guestfs_close (guestfs_h *g); extern const char *guestfs_last_error (guestfs_h *g); typedef void (*guestfs_error_handler_cb) (guestfs_h *g, void *data, const char *msg); -typedef void (*guestfs_abort_cb) (void); +typedef void (*guestfs_abort_cb) (void) __attribute__((__noreturn__)); extern void guestfs_set_error_handler (guestfs_h *g, guestfs_error_handler_cb cb, void *data); extern guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g, void **data_rtn);