summaryrefslogtreecommitdiffstats
path: root/documentation/transitioning-to-a-custom-environment.rst
diff options
context:
space:
mode:
authorSunil Dora <sunilkumar.dora@windriver.com>2024-12-11 10:00:36 -0800
committerSteve Sakoman <steve@sakoman.com>2024-12-23 05:46:32 -0800
commit19fce77a5f132c569c555e8b6a4dda1379537653 (patch)
tree82f33e2d6e9a645c0304da9831d002f282393e4a /documentation/transitioning-to-a-custom-environment.rst
parent59a2ca0cfe7b1a1ff037fd12fb5e4f83b236d28a (diff)
downloadpoky-19fce77a5f132c569c555e8b6a4dda1379537653.tar.gz
gcc: Fix c++: tweak for Wrange-loop-construct
This commit updates the warning to use a check for "trivially constructible" instead of "trivially copyable." The original check was incorrect, as "trivially copyable" only applies to types that can be copied trivially, whereas "trivially constructible" is the correct check for types that can be trivially default-constructed. This change ensures the warning is more accurate and aligns with the proper type traits. LLVM accepted a similar fix: https://github.com/llvm/llvm-project/issues/47355 PR c++/116731 [https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116731] (From OE-Core rev: 614a8e3a06003dfcbf1f32dc2d6f4d18f74b71a4) Signed-off-by: Marek Polacek <polacek@redhat.com> Signed-off-by: Sunil Dora <sunilkumar.dora@windriver.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'documentation/transitioning-to-a-custom-environment.rst')
0 files changed, 0 insertions, 0 deletions