This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 05/40] command.h: Include scoped_restore_command.h


Pedro Alves <palves@redhat.com> writes:

> This file depends on scoped_restore:
>
>   extern scoped_restore_tmpl<int> prevent_dont_repeat (void);
>
> But doesn't include the corresponding header.

It is a function declaration, so why does it need scoped_restore?

$ make check-headers CHECK_HEADERS="command.h"

The command above doesn't complain anything.  I tried gcc-5, 6, and 7.

-- 
Yao (齐尧)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]