aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-01-28 11:50:50 -0600
committerCharles Kerr <charles.kerr@canonical.com>2014-01-28 11:50:50 -0600
commite57a2e9b860db9776d94356a6fc38e193c801f65 (patch)
treeef8d1cf5a1e0daf940fcb786a9f52b8bcd7750c9
parent1e90a7ec0e834dc28434f4db7b4339c8492c602b (diff)
downloadayatana-indicator-datetime-e57a2e9b860db9776d94356a6fc38e193c801f65.tar.gz
ayatana-indicator-datetime-e57a2e9b860db9776d94356a6fc38e193c801f65.tar.bz2
ayatana-indicator-datetime-e57a2e9b860db9776d94356a6fc38e193c801f65.zip
silence compiler warning
-rw-r--r--src/menu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/menu.cpp b/src/menu.cpp
index 9e76d4b..390a06f 100644
--- a/src/menu.cpp
+++ b/src/menu.cpp
@@ -381,7 +381,7 @@ private:
case Appointments: model = create_appointments_section(p); break;
case Locations: model = create_locations_section(p); break;
case Settings: model = create_settings_section(p); break;
- default: g_warn_if_reached();
+ default: model = nullptr; g_warn_if_reached();
}
if (model)