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
array.cpp
array.h
callable_method_pointer.cpp
callable_method_pointer.h
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
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_names.inc
color.cpp
color.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +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
core_builders.py SCons: Drop support for Python 2 2020-03-25 15:25:37 +01:00
core_string_names.cpp
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
dictionary.h
engine.cpp
engine.h
error_list.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
error_macros.cpp
error_macros.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
func_ref.cpp
func_ref.h
global_constants.cpp Refactored Input, create DisplayServer and DisplayServerX11 2020-03-26 15:49:32 +01:00
global_constants.h
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
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
method_bind.cpp
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
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_id.h
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
ordered_hash_map.h Style: Set clang-format Standard to Cpp11 2020-03-17 07:36:24 +01:00
packed_data_container.cpp
packed_data_container.h
pair.h
path_remap.cpp
path_remap.h
pool_allocator.cpp
pool_allocator.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
print_string.cpp
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
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_owner.cpp
rid_owner.h Compilation fixes on Android 2020-03-04 13:15:37 +01:00
rid.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
ring_buffer.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
safe_refcount.cpp
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
SCsub Refactored Input, create DisplayServer and DisplayServerX11 2020-03-26 15:49:32 +01:00
self_list.h
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
spin_lock.h
string_buffer.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
string_builder.cpp
string_builder.h
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
thread_work_pool.h
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
undo_redo.h
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_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
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
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
vset.h