Fix macOS build, missing override

Fixes:

In file included from ../../src/gdb/darwin-nat.c:63:0:
../../src/gdb/darwin-nat.h:28:8: error: 'virtual void darwin_nat_target::create_inferior(const char*, const string&, char**, int)' can be marked override [-Werror=suggest-override]
   void create_inferior (const char *exec_file,
        ^

gdb/ChangeLog:
2018-05-24  Pedro Alves  <palves@redhat.com>

	* darwin-nat.h (darwin_nat_target::create_inferior): Mark with
	override.
This commit is contained in:
Pedro Alves 2018-05-24 13:07:53 +01:00
parent 08163f025e
commit da05d921f0
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2018-05-24 Pedro Alves <palves@redhat.com>
* darwin-nat.h (darwin_nat_target::create_inferior): Mark with
override.
2018-05-23 Tom Tromey <tom@tromey.com>
* complaints.c (struct complaints): Remove.

View File

@ -27,7 +27,7 @@ class darwin_nat_target : public inf_child_target
{
void create_inferior (const char *exec_file,
const std::string &allargs,
char **env, int from_tty);
char **env, int from_tty) override;
void attach (const char *, int) override;