Fix macOS build, missing override
authorPedro Alves <palves@redhat.com>
Thu, 24 May 2018 12:07:53 +0000 (13:07 +0100)
committerPedro Alves <palves@redhat.com>
Thu, 24 May 2018 12:21:55 +0000 (13:21 +0100)
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.

gdb/ChangeLog
gdb/darwin-nat.h

index 8c9860380f3ca005798464c1202942107df905b5..d700d6cdf2ccaf9f6ca977ef022510aacba17e31 100644 (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.
index 9d45bdabe8e2d311efebb4f27c30d9b115aae4f5..5965df08ab6a94e77ec6f3dd6a4181e57b8641fd 100644 (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;