commit | a6c307a84fe43679ece859789666cca4c391cd38 | [log] [tgz] |
---|---|---|
author | Jayanth Othayoth <ojayanth@gmail.com> | Sun Dec 08 09:07:14 2024 -0600 |
committer | Jayanth Othayoth <ojayanth@gmail.com> | Thu Mar 13 23:53:00 2025 -0500 |
tree | 2e61cb5f82e77dfacaa17b51653563718b396973 | |
parent | a6fb32d899c7b6c19201fc0d4ab7417a47958e33 [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