* mi/mi-cmd-stack.c (list_args_or_locals): Workaround
authorVladimir Prus <vladimir@codesourcery.com>
Sat, 19 Sep 2009 11:12:42 +0000 (11:12 +0000)
committerVladimir Prus <vladimir@codesourcery.com>
Sat, 19 Sep 2009 11:12:42 +0000 (11:12 +0000)
gcc warning.

gdb/ChangeLog
gdb/mi/mi-cmd-stack.c

index 35349da8b937115db74bfeedeea10d204e315896..3ac8fa27bc461edeb2e1a38f64eead815b941b6c 100644 (file)
@@ -1,3 +1,8 @@
+2009-09-19  Vladimir Prus  <vladimir@codesourcery.com>
+
+       * mi/mi-cmd-stack.c (list_args_or_locals): Workaround
+       gcc warning.
+
 2009-09-19  Vladimir Prus  <vladimir@codesourcery.com>
 
        * mi/mi-cmds.h (mi_cmd_stack_list_variables): Declare.
index 4bcbe986e00183c2a6ebbc55aa6eea490a1d77bd..3dad54f85b99cc79b61a7ddd622ff7f136dccbc2 100644 (file)
@@ -261,6 +261,8 @@ list_args_or_locals (enum what_to_list what, int values, struct frame_info *fi)
       name_of_result = "args"; break;
     case all:
       name_of_result = "variables"; break;
+    default:
+      gdb_assert (("unexpected value", 0));
     }
 
   cleanup_list = make_cleanup_ui_out_list_begin_end (uiout, name_of_result);