]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
frame.h: Forward-declare struct ui_out
authorSimon Marchi <simon.marchi@ericsson.com>
Thu, 6 Oct 2016 17:01:37 +0000 (13:01 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Thu, 6 Oct 2016 17:03:29 +0000 (13:03 -0400)
Fixes this failure when building in C mode.  I think it's relevant for master
as well, since it's a good practice to include (or forward-declare) what you
use.

In file included from ../../binutils-gdb/gdb/gdbarch.h:38:0,
                 from ../../binutils-gdb/gdb/defs.h:653,
                 from ../../binutils-gdb/gdb/dictionary.c:23:
../../binutils-gdb/gdb/frame.h:710:48: warning: ‘struct ui_out’ declared inside parameter list will not be visible outside of this definition or declaration
 extern void print_stack_frame_to_uiout (struct ui_out *uiout,

gdb/ChangeLog:

* frame.h: Forward-declare struct ui_out.

gdb/ChangeLog
gdb/frame.h

index 5f957c04876969264e2e2c52f822e3911b44fa5e..7ebe133863e17b63fab5ecfde156f05ec1bde47b 100644 (file)
@@ -1,3 +1,7 @@
+2016-10-06  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * frame.h: Forward-declare struct ui_out.
+
 2016-10-06  Maciej W. Rozycki  <macro@imgtec.com>
 
        * mips-tdep.c (mips_pseudo_register_type): Make FCRs always
index de13e7dc39210424ad71a6e26b1f2df63ad8186a..a05ac82f909523f621ff93188f613b2ac110d0f5 100644 (file)
@@ -77,6 +77,7 @@ struct frame_base;
 struct block;
 struct gdbarch;
 struct ui_file;
+struct ui_out;
 
 /* Status of a given frame's stack.  */