[Libguestfs] [PATCH] augeas: make functions as noreturn

Wanlong Gao gaowanlong at cn.fujitsu.com
Wed Jul 18 01:58:44 UTC 2012


Just make gcc happy.

Signed-off-by: Wanlong Gao <gaowanlong at cn.fujitsu.com>
---
 daemon/augeas.c | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/daemon/augeas.c b/daemon/augeas.c
index f03b819..a6495d2 100644
--- a/daemon/augeas.c
+++ b/daemon/augeas.c
@@ -389,85 +389,85 @@ optgroup_augeas_available (void)
   return 0;
 }
 
-int
+int __attribute__((noreturn))
 do_aug_init (const char *root, int flags)
 {
   abort ();
 }
 
-int
+int __attribute__((noreturn))
 do_aug_close (void)
 {
   abort ();
 }
 
-int
+int __attribute__((noreturn))
 do_aug_defvar (const char *name, const char *expr)
 {
   abort ();
 }
 
-guestfs_int_int_bool *
+guestfs_int_int_bool * __attribute__((noreturn))
 do_aug_defnode (const char *name, const char *expr, const char *val)
 {
   abort ();
 }
 
-char *
+char * __attribute__((noreturn))
 do_aug_get (const char *path)
 {
   abort ();
 }
 
-int
+int __attribute__((noreturn))
 do_aug_set (const char *path, const char *val)
 {
   abort ();
 }
 
-int
+int __attribute__((noreturn))
 do_aug_clear (const char *path)
 {
   abort ();
 }
 
-int
+int __attribute__((noreturn))
 do_aug_insert (const char *path, const char *label, int before)
 {
   abort ();
 }
 
-int
+int __attribute__((noreturn))
 do_aug_rm (const char *path)
 {
   abort ();
 }
 
-int
+int __attribute__((noreturn))
 do_aug_mv (const char *src, const char *dest)
 {
   abort ();
 }
 
-char **
+char ** __attribute__((noreturn))
 do_aug_match (const char *path)
 {
   abort ();
 }
 
-int
+int __attribute__((noreturn))
 do_aug_save (void)
 {
   abort ();
 }
 
-int
+int __attribute__((noreturn))
 do_aug_load (void)
 {
   abort ();
 }
 
-char **
+char ** __attribute__((noreturn))
 do_aug_ls (const char *path)
 {
   abort ();
-- 
1.7.11.2.249.g31c7954




More information about the Libguestfs mailing list