[gnome-disk-utility] Placate -Wswitch-default
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility] Placate -Wswitch-default
- Date: Sat, 29 Aug 2015 20:48:40 +0000 (UTC)
commit da0fbba262a5a88034793de864429fa2dc8bb38a
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sat Aug 29 15:45:07 2015 -0500
Placate -Wswitch-default
I don't like this warning but I can live with it.
Surprised this is the only new one....
src/disks/gduatasmartdialog.c | 2 ++
src/disks/gdubenchmarkdialog.c | 6 ++++++
src/disks/gduvolumegrid.c | 1 +
src/disks/gduwindow.c | 6 ++++++
4 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/src/disks/gduatasmartdialog.c b/src/disks/gduatasmartdialog.c
index 9e89b71..43e1591 100644
--- a/src/disks/gduatasmartdialog.c
+++ b/src/disks/gduatasmartdialog.c
@@ -1654,6 +1654,8 @@ gdu_ata_smart_dialog_show (GduWindow *window,
case 2:
refresh_do (data);
break;
+ default:
+ g_assert_not_reached ();
}
if (response < 0)
diff --git a/src/disks/gdubenchmarkdialog.c b/src/disks/gdubenchmarkdialog.c
index 6727630..7baac8d 100644
--- a/src/disks/gdubenchmarkdialog.c
+++ b/src/disks/gdubenchmarkdialog.c
@@ -748,6 +748,9 @@ update_updated_label (DialogData *data)
gtk_label_set_markup (GTK_LABEL (data->updated_label), s);
g_free (s);
break;
+
+ default:
+ g_assert_not_reached ();
}
G_UNLOCK (bm_lock);
}
@@ -1657,6 +1660,9 @@ gdu_benchmark_dialog_show (GduWindow *window,
case 1: /* abort benchmark */
abort_benchmark (data);
break;
+
+ default:
+ g_assert_not_reached ();
}
if (response < 0)
diff --git a/src/disks/gduvolumegrid.c b/src/disks/gduvolumegrid.c
index 011e851..1f2d2ca 100644
--- a/src/disks/gduvolumegrid.c
+++ b/src/disks/gduvolumegrid.c
@@ -1579,6 +1579,7 @@ grid_element_set_details (GduVolumeGrid *grid,
switch (element->type)
{
case GDU_VOLUME_GRID_ELEMENT_TYPE_CONTAINER:
+ default:
g_assert_not_reached ();
break;
diff --git a/src/disks/gduwindow.c b/src/disks/gduwindow.c
index 3aadc5c..816c9bb 100644
--- a/src/disks/gduwindow.c
+++ b/src/disks/gduwindow.c
@@ -1687,6 +1687,9 @@ update_all (GduWindow *window)
case DETAILS_PAGE_DEVICE:
update_device_page (window, &show_flags);
break;
+
+ default:
+ g_assert_not_reached ();
}
update_for_show_flags (window, &show_flags);
}
@@ -2908,6 +2911,9 @@ update_device_page (GduWindow *window,
case GDU_VOLUME_GRID_ELEMENT_TYPE_FREE_SPACE:
update_device_page_for_free_space (window, object, block, size, show_flags);
break;
+
+ default:
+ g_assert_not_reached ();
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]