suppress a warning from -Wswitch-default
authorJim Meyering <meyering@redhat.com>
Tue, 18 Aug 2009 13:35:32 +0000 (15:35 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 18 Aug 2009 15:20:06 +0000 (17:20 +0200)
* src/guestfs.c (guestfs_end_busy): Add a "default:" label.

src/guestfs.c

index 0c007d2..8491205 100644 (file)
@@ -1628,8 +1628,10 @@ guestfs_end_busy (guestfs_h *g)
     case CONFIG:
     case READY:
       break;
+
     case LAUNCHING:
     case NO_HANDLE:
+    default:
       error (g, _("guestfs_end_busy: called when in state %d"), g->state);
       return -1;
     }