commit | eae8859cae6655ccc000c792a4b51cf8ac38b0c1 | [log] [tgz] |
---|---|---|
author | Willy Tu <wltu@google.com> | Tue Dec 13 14:28:02 2022 -0800 |
committer | Willy Tu <wltu@google.com> | Tue Dec 13 14:29:18 2022 -0800 |
tree | 47f30ab1686f27815db774888b6b1968926d0be9 | |
parent | 511369844523794fd2dd1655528b48fe38b8e1e5 [diff] |
sensorhander: Create overrides for SensorDataEventRecordBody set_id_strlen + set_id_type does not have function to support SensorDataEventRecordBody, but is currently being used. Without it the build failed like the following ``` ../dbus-sdr/sensorcommands.cpp: In function 'bool ipmi::constructVrSdr(Context::ptr, const std::unordered_set<std::__cxx11::basic_string<char> >&, uint16_t, uint16_t, const std::string&, const std::string&, get_sdr::SensorDataEventRecord&)': ../dbus-sdr/sensorcommands.cpp:1916:44: error: cannot convert 'get_sdr::SensorDataEventRecordBody*' to 'get_sdr::SensorDataFullRecordBody*' 1916 | get_sdr::body::set_id_strlen(nameSize, &record.body); | ^~~~~~~~~~~~ | | | get_sdr::SensorDataEventRecordBody* In file included from ../include/dbus-sdr/storagecommands.hpp:18, from ../dbus-sdr/sensorcommands.cpp:21: ../sensorhandler.hpp:572:66: note: initializing argument 2 of 'void get_sdr::body::set_id_strlen(uint8_t, get_sdr::SensorDataFullRecordBody*)' 572 | inline void set_id_strlen(uint8_t len, SensorDataFullRecordBody* body) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ../dbus-sdr/sensorcommands.cpp:1917:35: error: cannot convert 'get_sdr::SensorDataEventRecordBody*' to 'get_sdr::SensorDataFullRecordBody*' 1917 | get_sdr::body::set_id_type(3, &record.body); // "8-bit ASCII + Latin 1" | ^~~~~~~~~~~~ | | | get_sdr::SensorDataEventRecordBody* ../sensorhandler.hpp:581:65: note: initializing argument 2 of 'void get_sdr::body::set_id_type(uint8_t, get_sdr::SensorDataFullRecordBody*)' 581 | inline void set_id_type(uint8_t type, SensorDataFullRecordBody* body ``` Change-Id: Ic780a1f848a9e6bcea79fd9822539184d1d985cf Signed-off-by: Willy Tu <wltu@google.com>
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