mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
Gcc-14 triggers a warning for substitute_esc_chars in json_spirit_reader_template.h if optimizations are enabled. ../../../source/third_party/jsonspirit/json_spirit_reader_template.h:138:62: /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/char_traits.h:427:56: warning: ‘void* __builtin_memcpy(void*, const void*, long unsigned int)’ accessing 9223372036854775808 or more bytes at offsets 0 and 0 may overlap up to 9223372036854775809 bytes at offset -1 [-Wrestrict] 427 | return static_cast<char_type*>(__builtin_memcpy(__s1, __s2, __n)); for with lto enabled /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/char_traits.h:427:56: warning: ‘__builtin_memcpy’ specified bound between 9223372036854775808 and 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=] 427 | return static_cast<char_type*>(__builtin_memcpy(__s1, __s2, __n)); This looks like another incarnation of bugs like: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105329 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100366 Add quirk to avoid the warning Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com> |
||
|---|---|---|
| .. | ||
| encryption | ||
| glad | ||
| jsonspirit | ||
| mikktspace | ||
| mongoose | ||
| ogre3d_preprocessor | ||
| tinygettext | ||
| vma | ||