git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d93a02c
)
suppress a warning from -Wswitch-default
author
Jim Meyering
<meyering@redhat.com>
Tue, 18 Aug 2009 13:35:32 +0000
(15:35 +0200)
committer
Jim 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
patch
|
blob
|
history
diff --git
a/src/guestfs.c
b/src/guestfs.c
index
0c007d2
..
8491205
100644
(file)
--- a/
src/guestfs.c
+++ b/
src/guestfs.c
@@
-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;
}