r600/sfn: Fix warning about overloads hiding virtual functions
authorCaio Oliveira <caio.oliveira@intel.com>
Wed, 7 Jun 2023 20:13:53 +0000 (13:13 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 8 Jun 2023 07:17:21 +0000 (07:17 +0000)
commit75b63a5d3e4c0816b55deaf8d105d28bfebea98b
treef2ac221dc6fd13ae923ea54abcfd57c224c5fea2
parent1eda220f18e93d446ead996485c69838ea137bfd
r600/sfn: Fix warning about overloads hiding virtual functions

Fixes multiple warnings when building with g++ 13.1.1 that look like

```
./src/gallium/drivers/r600/sfn/sfn_scheduler.cpp:1111:9: warning: ‘virtual void r600::CheckArrayAccessVisitor::visit(const r600::InlineConstant&)’ was hidden [-Woverloaded-virtual=]
 1111 |    void visit(const InlineConstant& value) override {(void)value;}
      |         ^~~~~
../src/gallium/drivers/r600/sfn/sfn_scheduler.cpp:1125:9: note:   by ‘virtual void r600::UpdateArrayWrite::visit(const r600::LocalArrayValue&)’
 1125 |    void visit(const LocalArrayValue& value) override {
      |         ^~~~~
(...)
```

What's going on here is when mixing overloading and virtual functions,
compiler will warn when one of the variants is not overriden.  So tell
it to also use the base class definitions.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23509>
src/gallium/drivers/r600/sfn/sfn_scheduler.cpp