From: Jim Meyering Date: Tue, 18 Aug 2009 13:39:26 +0000 (+0200) Subject: suppress warnings from -Wmissing-noreturn X-Git-Tag: 1.0.68~15 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=f1b48465f7e051527ff84370de7f312a706e604b;p=libguestfs.git 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. --- 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;