[Xfce4-commits] <xfce4-panel:devel> Warn for possible uninitialized variable.

Nick Schermer noreply at xfce.org
Wed Nov 25 11:30:01 CET 2009


Updating branch refs/heads/devel
         to 290332a2de9970ddc24f6761379c256231daa003 (commit)
       from fa362ddbd7ff17b5839efeec06b47c3177f1079b (commit)

commit 290332a2de9970ddc24f6761379c256231daa003
Author: Nick Schermer <nick at xfce.org>
Date:   Wed Nov 25 10:57:00 2009 +0100

    Warn for possible uninitialized variable.

 plugins/clock/clock.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/plugins/clock/clock.c b/plugins/clock/clock.c
index 4363d59..2380538 100644
--- a/plugins/clock/clock.c
+++ b/plugins/clock/clock.c
@@ -469,6 +469,11 @@ clock_plugin_configure_plugin_mode_changed (GtkComboBox       *combo,
       case CLOCK_PLUGIN_MODE_LCD:
         active = 1 << 1 | 1 << 3 | 1 << 4 | 1 << 5;
         break;
+
+      default:
+        panel_assert_not_reached ();
+        active = 0;
+        break;
     }
 
   /* show or hide the dialog widgets */



More information about the Xfce4-commits mailing list