commit | 4efe03d3b224b74ff55a7768dad57ca4a6332e32 | [log] [tgz] |
---|---|---|
author | Jayanth Othayoth <ojayanth@gmail.com> | Sun Dec 08 09:07:14 2024 -0600 |
committer | Jayanth Othayoth <ojayanth@gmail.com> | Thu Mar 06 04:06:54 2025 -0600 |
tree | 493383a3f7187d67f33f028baece30ba32a0cc4e | |
parent | 5f9ed924aa40bd65836888992acc61c3f5dd643b [diff] |
clang-tidy: Fix Dangling Pointer Warning The following error was reported during clang-tidy enablement due to a temporary object being destroyed at the end of the full-expression, leaving a dangling pointer. This fix addresses the issue by changing str to a proper string instead of a string_view. ''' 0m../apphandler.cpp:545:36: error: object backing the pointer will be destroyed at the end of the full-expression [-Werror 0m../apphandler.cpp:564:40: error: object backing the pointer will be destroyed at the end of the full-expression [-Werror 1m../apphandler.cpp:523:36: error: object backing the pointer will be destroyed at the end of the full-expression [-Werror ''' Tested: Build and unit testing verified. Change-Id: I4f8f2dc3f24a4e417e6805075cfaefddb111efaa 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