diff options
author | Jim Meyering <meyering@redhat.com> | 2009-08-18 15:39:26 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-08-18 17:20:06 +0200 |
commit | f1b48465f7e051527ff84370de7f312a706e604b (patch) | |
tree | 64d494cc71a7d1109c67fe438d8e40a618982ad4 /src/guestfs.c | |
parent | 3fa23b14d28d8018f71f659d7e5902850695b24b (diff) | |
download | libguestfs-f1b48465f7e051527ff84370de7f312a706e604b.tar.gz libguestfs-f1b48465f7e051527ff84370de7f312a706e604b.tar.xz libguestfs-f1b48465f7e051527ff84370de7f312a706e604b.zip |
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.
Diffstat (limited to 'src/guestfs.c')
-rw-r--r-- | src/guestfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/guestfs.c b/src/guestfs.c index 8491205c..0d54d65a 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; |