| commit | 01f71428f2cd0def4cf76240bd2565b7e58187e8 | [log] [tgz] |
|---|---|---|
| author | Adriana Kobylak <anoo@us.ibm.com> | Fri Feb 07 09:58:50 2025 -0600 |
| committer | Adriana Kobylak <anoo@us.ibm.com> | Fri Feb 07 10:06:16 2025 -0600 |
| tree | 7253014d6f2e91b7374c75ddab6da6708b65ac52 | |
| parent | 837b09428d86a80fcae589b81c2fc7b00dd36484 [diff] |
mmc: clang-tidy: Add override keyword
Marked virtual functions with the `override` keyword to ensure
they correctly override base class functions. This resolves
-Winconsistent-missing-override warnings and improves code safety
and readability by explicitly indicating overridden functions.
```
Error while processing /var/jenkins-openbmc/workspace/ci-repository/openbmc/openpower-pnor-code-mgmt/mmc/item_updater_mmc.hpp.
/var/jenkins-openbmc/workspace/ci-repository/openbmc/openpower-pnor-code-mgmt/mmc/item_updater_mmc.hpp:94:10: error: 'validateImage' overrides a member function but is not marked 'override' [clang-diagnostic-inconsistent-missing-override]
94 | bool validateImage(const std::string& path);
| ^
../item_updater.hpp:199:18: note: overridden virtual function is here
199 | virtual bool validateImage(const std::string& path) = 0;
| ^
```
Tested: CI runs with no errors.
Change-Id: I24e5cae09e2cdeacf0155d5de70a6ecbae5e00e0
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
OpenPower PNOR (Processor NOR) Code Management provides a set of host software management applications for OpenPower systems. The host firmware is stored on the PNOR chip. More information can be found at Software Architecture or Host Code Update
To build this package, do the following steps:
meson buildninja -C buildTo clean the repository run rm -r build.