From: Joel Brobecker Date: Thu, 16 May 2013 10:42:58 +0000 (+0000) Subject: Remove forward enum declaration in utils.h. X-Git-Tag: gdb_7_6_1-2013-08-30-release~118 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e8220d5a362fd970a84561c969bdf6c6175a8097;p=thirdparty%2Fbinutils-gdb.git Remove forward enum declaration in utils.h. 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 924305b3a21..cb1d3710959 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-05-15 Joel Brobecker + + * utils.h: #include "exceptions.h". + (enum errors): Remove partial declaration. + 2013-05-10 David Taylor PR remote/15455 diff --git a/gdb/utils.h b/gdb/utils.h index d6d49e6d2e8..76208707ec8 100644 --- a/gdb/utils.h +++ b/gdb/utils.h @@ -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;