godot/core/templates
Grigoris Pavlakis abef2b7194 Fix placement new on zero-sized region warning on GCC 11.1
On latest (11.1 as of this commit) GCC, the following warning is
continuously issued during build:
warning: placement new constructing an object of type
'SafeNumeric<unsigned int>' and size '4' in a region of type
'uint32_t*' {aka 'unsigned int*'} and size '0' [-Wplacement-new=]

This happens because on 98ceb60eb4 the new operator override used
was dropped and replaced with standard placement new. GCC sees the
subtraction from the pointer and complains as it thinks that the
SafeNumeric is placed outside an allocation, not knowing that the
address requested is already inside one.

After suggestions, the false positive is silenced, with no other
changes.
2021-09-15 00:07:21 +03:00
..
bin_sorted_array.h
command_queue_mt.cpp
command_queue_mt.h Fix various typos with codespell 2021-07-25 11:21:51 +02:00
cowdata.h Fix placement new on zero-sized region warning on GCC 11.1 2021-09-15 00:07:21 +03:00
hash_map.h
hashfuncs.h Use the standard C INFINITY and NAN constants directly 2021-07-21 10:41:08 +02:00
list.h Fix equality operators in List's ConstIterator 2021-07-15 10:47:20 +02:00
local_vector.h Fix LocalVector crash on insert. 2021-08-26 11:54:56 +02:00
lru.h
map.h Replace HTTP links with HTTPS for sites with HTTPS versions 2021-08-22 20:13:11 -05:00
oa_hash_map.h
ordered_hash_map.h
paged_allocator.h Add the possibility to initialize the classes allocated with the PagedAllocator 2021-08-14 09:04:31 +02:00
paged_array.h
pair.h Merge pull request #47395 from sygi/shape_idx_collision 2021-07-16 19:05:08 +02:00
pass_func.h
pooled_list.h
rid_owner.cpp
rid_owner.h Expose RID creation utilities. 2021-08-23 21:55:45 -03:00
rid.h
ring_buffer.h
safe_list.h Add a SafeList data structure for future audio server usage. 2021-08-27 10:26:18 -07:00
safe_refcount.h
SCsub
self_list.h
set.h Replace HTTP links with HTTPS for sites with HTTPS versions 2021-08-22 20:13:11 -05:00
simple_type.h
sort_array.h
thread_work_pool.cpp
thread_work_pool.h
vector.h Replace stb_vorbis with libogg+libvorbis 2021-09-09 19:39:04 -07:00
vmap.h
vset.h