Constify some commands in cli-cmds.c
[deliverable/binutils-gdb.git] / gdb / cp-namespace.c
index c7b5aa8d45aad33de81c00edc824f5d72d37497c..214b7e1cf4e77aeacc2d22371a74b0e58ebd5c3e 100644 (file)
@@ -93,8 +93,9 @@ cp_scan_for_anonymous_namespaces (const struct symbol *const symbol,
                 anonymous namespace.  So add symbols in it to the
                 namespace given by the previous component if there is
                 one, or to the global namespace if there isn't.  */
+             std::vector<const char *> excludes;
              add_using_directive (&local_using_directives,
-                                  dest, src, NULL, NULL, NULL, 1,
+                                  dest, src, NULL, NULL, excludes, 1,
                                   &objfile->objfile_obstack);
            }
          /* The "+ 2" is for the "::".  */
@@ -1077,14 +1078,11 @@ cp_lookup_transparent_type_loop (const char *name,
    obsolete.  */
 
 static void
-maintenance_cplus_namespace (char *args, int from_tty)
+maintenance_cplus_namespace (const char *args, int from_tty)
 {
   printf_unfiltered (_("The `maint namespace' command was removed.\n"));
 }
 
-/* Provide a prototype to silence -Wmissing-prototypes.  */
-extern initialize_file_ftype _initialize_cp_namespace;
-
 void
 _initialize_cp_namespace (void)
 {
This page took 0.023826 seconds and 4 git commands to generate.