From da05d921f0b7b9f9f07ac4e78ee228e7ecf847e0 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 24 May 2018 13:07:53 +0100 Subject: [PATCH] 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 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with override. --- gdb/ChangeLog | 5 +++++ gdb/darwin-nat.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8c9860380f3..d700d6cdf2c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2018-05-24 Pedro Alves + + * darwin-nat.h (darwin_nat_target::create_inferior): Mark with + override. + 2018-05-23 Tom Tromey * complaints.c (struct complaints): Remove. diff --git a/gdb/darwin-nat.h b/gdb/darwin-nat.h index 9d45bdabe8e..5965df08ab6 100644 --- a/gdb/darwin-nat.h +++ b/gdb/darwin-nat.h @@ -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; -- 2.30.2