| commit | 32aece1a17c4553a2da324a8f0b2a3572ff2033a | [log] [tgz] |
|---|---|---|
| author | Patrick Williams <patrick@stwcx.xyz> | Fri Jan 24 10:06:55 2025 -0500 |
| committer | Patrick Williams <patrick@stwcx.xyz> | Fri Jan 24 10:07:42 2025 -0500 |
| tree | e58a27856288323a02acd1c9a27e66f7e9c15d3f | |
| parent | f62ad6fc53bbc38e5ce27b8b43c35324191bb4b7 [diff] |
storagehandler: fix compile without open-power
When the `open-power` meson option is disabled, the code fails with
the following compile failure:
```
../storagehandler.cpp: In function ‘ipmi::RspType<short unsigned int> ipmiStorageAddSEL(uint16_t, uint8_t, uint32_t, uint16_t, uint8_t, uint8_t, uint8_t, uint8_t, std::array<unsigned char, 3>)’:
../storagehandler.cpp:685:27: error: unused variable ‘procedureType’ [-Werror=unused-variable]
685 | static constexpr auto procedureType = 0xDE;
| ^~~~~~~~~~~~~
../storagehandler.cpp:677:64: error: unused parameter ‘sensorType’ [-Werror=unused-parameter]
677 | [[maybe_unused]] uint8_t evmRev, uint8_t sensorType,
```
Add trivial changes to fix.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ia7cc8dab700381c78461899bfc8c33d43cab3625
meson builddir ninja -C builddir
meson builddir -Dbuildtype=minsize -Db_lto=true -Dtests=disabled ninja -C builddir
If any of the dependencies are not found on the host system during configuration, meson automatically gets them via its wrap dependencies mentioned in ipmid/subprojects.
meson builddir -Dwrap_mode=nofallback ninja -C builddir
meson builddir -Dbuildtype=debug ninja -C builddir
meson builddir -Db_coverage=true -Dtests=enabled ninja -C builddir test ninja -C builddir coverage