Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: a2e4ee7ed26a28dcdcf0c0091f5ee44c8ea2cfbe
https://github.com/tianocore/edk2/commit/a2e4ee7ed26a28dcdcf0c0091f5ee44c8ea2cfbe
Author: Michael D Kinney <[email protected]>
Date: 2025-06-25 (Wed, 25 Jun 2025)
Changed paths:
M UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc
Log Message:
-----------
UnitTestFrameworkPkg: Add -Wno-write-strings to host unit tests
Disable write strings warning for host-based unit test
builds when building modules of type HOST_APPLICATION.
Modules of type HOST_APPLICATION may compile and link code
under test into the host-based unit test. When building
GoogleTest based unit tests, the G++ compiler is used. The
G++ compiler is stricter than GCC for passing a const string
into a function parameter that is not const. This is not a
warning for GCC build of firmware code. But GoogleTest builds
that use g++ detect as a warning and that breaks the build.
The firmware code under test can not be changed, so the warning
-Wno-write-strings is added to CC_FLAGS to ignore this warning.
Signed-off-by: Michael D Kinney <[email protected]>
To unsubscribe from these emails, change your notification settings at
https://github.com/tianocore/edk2/settings/notifications
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits