From f1b48465f7e051527ff84370de7f312a706e604b Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 18 Aug 2009 15:39:26 +0200 Subject: [PATCH] suppress warnings from -Wmissing-noreturn Even though these functions are marked as "not implemented yet", and they will surely return a value once implemented, ... * src/guestfs.c (select_add_timeout): Declare with noreturn attribute. (select_remove_timeout): Likewise. --- src/guestfs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/guestfs.c b/src/guestfs.c index 8491205..0d54d65 100644 --- a/src/guestfs.c +++ b/src/guestfs.c @@ -2625,6 +2625,7 @@ select_remove_handle (guestfs_main_loop *mlv, guestfs_h *g, int fd) } static int +__attribute__((noreturn)) select_add_timeout (guestfs_main_loop *mlv, guestfs_h *g, int interval, guestfs_handle_timeout_cb cb, void *data) { @@ -2634,6 +2635,7 @@ select_add_timeout (guestfs_main_loop *mlv, guestfs_h *g, int interval, } static int +__attribute__((noreturn)) select_remove_timeout (guestfs_main_loop *mlv, guestfs_h *g, int timer) { //struct select_main_loop *ml = (struct select_main_loop *) mlv; -- 1.8.3.1