commit | 5f9ed924aa40bd65836888992acc61c3f5dd643b | [log] [tgz] |
---|---|---|
author | Jayanth Othayoth <ojayanth@gmail.com> | Sun Dec 08 09:33:58 2024 -0600 |
committer | Jayanth Othayoth <ojayanth@gmail.com> | Thu Mar 06 04:06:54 2025 -0600 |
tree | bc8da34da60b4ea58ef8c33a1e6ff39284686ec4 | |
parent | e10592bc305c436d8da0ea13f99338de51fd6209 [diff] |
clang-tidy: Fix packed member address warning The following error was reported during clang-tidy enablement due to taking the address of a packed member ''' ../apphandler.cpp:637:31: error: taking address of packed member 'recordID' of class or structure 'ipmi::sel::SELEventRecord' may result in an unaligned pointer value [-Werror] ''' Fix is to Copy the packed member to a temporary variable before using its address. This ensures proper alignment. Tested: Build and unit testing verified. Change-Id: Ib547c1764ec4402a18851b8130f06e60cb66dae3 Signed-off-by: Jayanth Othayoth <ojayanth@gmail.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