]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove forward enum declaration in utils.h.
authorJoel Brobecker <brobecker@gnat.com>
Thu, 16 May 2013 10:42:58 +0000 (10:42 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Thu, 16 May 2013 10:42:58 +0000 (10:42 +0000)
These forward declarations are a GNU extension, and they trigger
a build warning when the compiler does not support it.

gdb/ChangeLog:

        * utils.h: #include "exceptions.h".
        (enum errors): Remove partial declaration.

gdb/ChangeLog
gdb/utils.h

index 924305b3a2169661cd0283430e2543b28d06689b..cb1d3710959a87220658979affd98e35f48a8c3b 100644 (file)
@@ -1,3 +1,8 @@
+2013-05-15  Joel Brobecker  <brobecker@adacore.com>
+
+       * utils.h: #include "exceptions.h".
+       (enum errors): Remove partial declaration.
+
 2013-05-10  David Taylor  <dtaylor@emc.com>
 
        PR remote/15455
index d6d49e6d2e83bd566cad52d6a6706775a8ba29df..76208707ec8a41ed11905c184c72837f71e790e6 100644 (file)
@@ -22,6 +22,7 @@
 #define UTILS_H
 
 #include "cleanups.h"
+#include "exceptions.h"
 
 extern void initialize_utils (void);
 
@@ -279,7 +280,6 @@ extern char *hex_string_custom (LONGEST, int);
 extern void fprintf_symbol_filtered (struct ui_file *, const char *,
                                     enum language, int);
 
-enum errors;
 extern void throw_perror_with_name (enum errors errcode, const char *string)
   ATTRIBUTE_NORETURN;
 extern void perror_with_name (const char *) ATTRIBUTE_NORETURN;