summaryrefslogtreecommitdiffstats
path: root/scripts/contrib/convert-srcuri.py
diff options
context:
space:
mode:
authorSunil Dora <sunilkumar.dora@windriver.com>2024-12-11 10:15:12 -0800
committerSteve Sakoman <steve@sakoman.com>2025-01-09 06:02:48 -0800
commitd0a0b075749c0aa2fa796fdcf856ffac7ecfcb85 (patch)
treeb5b85f4409fc2e781c081e26e99e7d828495f1a2 /scripts/contrib/convert-srcuri.py
parenta1b9be34dba1c6fa369bbe5c1d3ec943f24d7379 (diff)
downloadpoky-d0a0b075749c0aa2fa796fdcf856ffac7ecfcb85.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: b8260e5aca93a7000001013f8a950fb040141588) 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 'scripts/contrib/convert-srcuri.py')
0 files changed, 0 insertions, 0 deletions