godot/core
Rémi Verschelde f725bd99f4 Fix some -Wmaybe-uninitialized warnings
Namely:
```
modules/basis_universal/register_types.cpp: In function 'Ref<Image> basis_universal_unpacker(const Vector<unsigned char>&)':
modules/basis_universal/register_types.cpp:266:15: warning: 'imgfmt' may be used uninitialized in this function [-Wmaybe-uninitialized]
  266 |  image->create(info.m_width, info.m_height, info.m_total_levels > 1, imgfmt, gpudata);
      |  ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
modules/basis_universal/register_types.cpp:255:39: warning: 'format' may be used uninitialized in this function [-Wmaybe-uninitialized]
  255 |    bool ret = tr.transcode_image_level(ptr, size, 0, i, dst + ofs, level.m_total_blocks - i, format);
      |               ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

```
servers/visual_server.cpp: In member function 'Error VisualServer::_surface_set_data(Array, uint32_t, uint32_t*, uint32_t, Vector<unsigned char>&, int, Vector<unsigned char>&, int, AABB&, Vector<AABB>&)':
servers/visual_server.cpp:636:15: warning: 'iw' may be used uninitialized in this function [-Wmaybe-uninitialized]
  636 |       copymem(&iw[i * 2], &v, 2);
      |               ^
```

```
core/image.cpp: In member function 'Error Image::generate_mipmap_roughness(Image::RoughnessChannel, const Ref<Image>&)':
core/image.cpp:1683:11: warning: 'roughness' may be used uninitialized in this function [-Wmaybe-uninitialized]
 1683 |     float roughness;
      |           ^~~~~~~~~
```
2020-03-27 14:33:06 +01:00
..
bind Effective DisplayServer separation, rename X11 -> LinuxBSD 2020-03-26 15:49:34 +01:00
crypto Removed interactive loader, added proper thread loading. 2020-02-28 11:20:45 -03:00
debugger Refactored input, goes all via windows now. 2020-03-26 15:49:39 +01:00
input Refactored input, goes all via windows now. 2020-03-26 15:49:39 +01:00
io Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
math Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
os Add macOS DisplayServer implementation. 2020-03-26 16:24:05 +01:00
SCsub Refactored Input, create DisplayServer and DisplayServerX11 2020-03-26 15:49:32 +01:00
array.cpp Reworked signal connection system, added support for Callable and Signal objects and made them default. 2020-02-20 08:24:50 +01:00
array.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
callable.cpp Fix C# bindings after recent breaking changes 2020-03-17 16:30:04 +01:00
callable.h Fix C# bindings after recent breaking changes 2020-03-17 16:30:04 +01:00
callable_method_pointer.cpp Created the callable_mp macro, for signals to call method pointers directly. 2020-02-21 13:46:45 +01:00
callable_method_pointer.h callable_mp: Fix non-debug branch 2020-02-23 23:48:44 +01:00
class_db.cpp Style: Set clang-format Standard to Cpp11 2020-03-17 07:36:24 +01:00
class_db.h Style: Set clang-format Standard to Cpp11 2020-03-17 07:36:24 +01:00
color.cpp Remove deprecated Color::gray 2020-02-12 11:22:33 +01:00
color.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
color_names.inc doc: Document named color constants 2020-01-26 12:08:16 +01:00
command_queue_mt.cpp Drop old semaphore implementation 2020-03-03 13:20:42 +01:00
command_queue_mt.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
compressed_translation.cpp Style: Set clang-format Standard to Cpp11 2020-03-17 07:36:24 +01:00
compressed_translation.h PoolVector is gone, replaced by Vector 2020-02-18 10:10:36 +01:00
core_builders.py SCons: Drop support for Python 2 2020-03-25 15:25:37 +01:00
core_string_names.cpp Reworked signal connection system, added support for Callable and Signal objects and made them default. 2020-02-20 08:24:50 +01:00
core_string_names.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
cowdata.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
dictionary.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
dictionary.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
engine.cpp More GIProbe work and fixes 2020-02-11 12:03:49 +01:00
engine.h More GIProbe work and fixes 2020-02-11 12:03:49 +01:00
error_list.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
error_macros.cpp Improve and document error macros 2020-01-24 17:19:57 +01:00
error_macros.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
func_ref.cpp Reworked signal connection system, added support for Callable and Signal objects and made them default. 2020-02-20 08:24:50 +01:00
func_ref.h Reworked signal connection system, added support for Callable and Signal objects and made them default. 2020-02-20 08:24:50 +01:00
global_constants.cpp Refactored Input, create DisplayServer and DisplayServerX11 2020-03-26 15:49:32 +01:00
global_constants.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
hash_map.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
hashfuncs.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
image.cpp Fix some -Wmaybe-uninitialized warnings 2020-03-27 14:33:06 +01:00
image.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
int_types.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
list.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
make_binders.py Reworked signal connection system, added support for Callable and Signal objects and made them default. 2020-02-20 08:24:50 +01:00
map.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
message_queue.cpp Tweak the message queue maximum size property hint 2020-03-24 15:05:07 +01:00
message_queue.h Reworked signal connection system, added support for Callable and Signal objects and made them default. 2020-02-20 08:24:50 +01:00
method_bind.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
method_bind.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
method_ptrcall.h Refactored Input, create DisplayServer and DisplayServerX11 2020-03-26 15:49:32 +01:00
node_path.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
node_path.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
oa_hash_map.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
object.cpp Added has_signal method for Object 2020-03-23 11:27:17 +01:00
object.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
object_id.h Reworked signal connection system, added support for Callable and Signal objects and made them default. 2020-02-20 08:24:50 +01:00
ordered_hash_map.h Style: Set clang-format Standard to Cpp11 2020-03-17 07:36:24 +01:00
packed_data_container.cpp Variant: Added 64-bit packed arrays, renamed Variant::REAL to FLOAT. 2020-02-25 12:55:53 +01:00
packed_data_container.h PoolVector is gone, replaced by Vector 2020-02-18 10:10:36 +01:00
pair.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
path_remap.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
path_remap.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
pool_allocator.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
pool_allocator.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
print_string.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
print_string.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
project_settings.cpp Style: Set clang-format Standard to Cpp11 2020-03-17 07:36:24 +01:00
project_settings.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
reference.cpp Changed logic and optimized ObjectID in ObjectDB and Variant, removed RefPtr. 2020-02-15 08:36:04 -03:00
reference.h Style: Set clang-format Standard to Cpp11 2020-03-17 07:36:24 +01:00
register_core_types.cpp Refactored input, goes all via windows now. 2020-03-26 15:49:39 +01:00
register_core_types.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
resource.cpp Style: Set clang-format Standard to Cpp11 2020-03-17 07:36:24 +01:00
resource.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
rid.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
rid_owner.cpp Vulkan: Move thirdparty code out of drivers, style fixes 2020-02-11 14:08:44 +01:00
rid_owner.h Compilation fixes on Android 2020-03-04 13:15:37 +01:00
ring_buffer.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
safe_refcount.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
safe_refcount.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
script_language.cpp Style: Set clang-format Standard to Cpp11 2020-03-17 07:36:24 +01:00
script_language.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
self_list.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
set.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
simple_type.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
sort_array.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
spin_lock.h Vulkan: Move thirdparty code out of drivers, style fixes 2020-02-11 14:08:44 +01:00
string_buffer.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
string_builder.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
string_builder.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
string_name.cpp Fix shadowed variable build error 2020-02-28 11:02:20 +01:00
string_name.h Fix shadowed variable build error 2020-02-28 11:02:20 +01:00
thread_work_pool.cpp Vulkan: Move thirdparty code out of drivers, style fixes 2020-02-11 14:08:44 +01:00
thread_work_pool.h Fixes some memory leaks 2020-02-13 09:46:13 +08:00
translation.cpp i18n: Add support for translating the class reference 2020-03-20 08:48:11 +01:00
translation.h i18n: Add support for translating the class reference 2020-03-20 08:48:11 +01:00
type_info.h Refactored Input, create DisplayServer and DisplayServerX11 2020-03-26 15:49:32 +01:00
typedefs.h typedefs: Cleanup unused macros and unnecessary checks 2020-03-11 21:44:56 +01:00
ucaps.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
undo_redo.cpp Added StringName as a variant type. 2020-02-21 14:25:29 +01:00
undo_redo.h Added StringName as a variant type. 2020-02-21 14:25:29 +01:00
ustring.cpp i18n: Add support for translating the class reference 2020-03-20 08:48:11 +01:00
ustring.h i18n: Add support for translating the class reference 2020-03-20 08:48:11 +01:00
variant.cpp Style: Set clang-format Standard to Cpp11 2020-03-17 07:36:24 +01:00
variant.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
variant_call.cpp Merge pull request #36896 from kuruk-mm/doc_return_variant_2 2020-03-16 19:55:07 +01:00
variant_op.cpp Refactor ScriptDebugger. 2020-03-08 12:36:39 +01:00
variant_parser.cpp Refactored Input, create DisplayServer and DisplayServerX11 2020-03-26 15:49:32 +01:00
variant_parser.h Fixes bugs found by Sonarcloud and Coverity 2020-03-02 19:17:20 +01:00
vector.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
version.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
vmap.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
vset.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00