mirror of
https://github.com/godotengine/godot.git
synced 2024-11-16 09:02:56 +00:00
62ecb44035
Fixes the following GCC 5 warnings: ``` core/io/zip_io.h:128:26: warning: 'zlib_filefunc_def zipio_create_io_from_file(FileAccess**)' defined but not used [-Wunused-function] core/script_debugger_remote.cpp:110:17: warning: 'ObjectID safe_get_instance_id(const Variant&)' defined but not used [-Wunused-function] drivers/unix/socket_helpers.h:103:12: warning: 'int _socket_create(IP::Type&, int, int)' defined but not used [-Wunused-function] drivers/unix/socket_helpers.h:45:15: warning: 'size_t _set_sockaddr(sockaddr_storage*, const IP_Address&, int, IP::Type)' defined but not used [-Wunused-function] drivers/unix/socket_helpers.h:76:15: warning: 'size_t _set_listen_sockaddr(sockaddr_storage*, int, IP::Type, IP_Address)' defined but not used [-Wunused-function] editor/editor_fonts.cpp:40:24: warning: 'Ref<BitmapFont> make_font(int, int, int, int, const int*, const Ref<Texture>&)' defined but not used [-Wunused-function] editor/editor_themes.cpp:85:26: warning: 'Ref<StyleBoxFlat> change_border_color(Ref<StyleBoxFlat>, Color)' defined but not used [-Wunused-function] editor/import/editor_import_collada.cpp:493:13: warning: 'void _generate_normals(const PoolVector<int>&, const PoolVector<Vector3>&, PoolVector<Vector3>&)' defined but not used [-Wunused-function] editor/import/editor_import_collada.cpp:524:13: warning: 'void _generate_tangents_and_binormals(const PoolVector<int>&, const PoolVector<Vector3>&, const PoolVector<Vector3>&, const PoolVector<Vector3>&, PoolVector<float>&)' defined but not used [-Wunused-function] editor/pvrtc_compress.cpp:118:13: warning: 'void _compress_etc(Image*)' defined but not used [-Wunused-function] modules/etc/image_etc.cpp:89:13: warning: 'void _decompress_etc1(Image*)' defined but not used [-Wunused-function] modules/etc/image_etc.cpp:93:13: warning: 'void _decompress_etc2(Image*)' defined but not used [-Wunused-function] modules/gdscript/editor/gdscript_highlighter.cpp:46:13: warning: 'bool _is_whitespace(CharType)' defined but not used [-Wunused-function] scene/2d/cpu_particles_2d.cpp:510:14: warning: 'float rand_from_seed_m1_p1(uint32_t&)' defined but not used [-Wunused-function] scene/3d/cpu_particles.cpp:474:14: warning: 'float rand_from_seed_m1_p1(uint32_t&)' defined but not used [-Wunused-function] scene/resources/default_theme/default_theme.cpp:123:20: warning: 'Ref<Shader> make_shader(const char*, const char*, const char*)' defined but not used [-Wunused-function] scene/resources/default_theme/default_theme.cpp:130:24: warning: 'Ref<BitmapFont> make_font(int, int, int, int, const int*, const Ref<Texture>&)' defined but not used [-Wunused-function] ``` Had to split `core/io/zip_io.h` into header and .cpp file without 'static' keyword. Not fixed yet (static definition in header used in some files but not all): ``` modules/websocket/lws_helper.h:111:13: warning: 'void _lws_make_protocols(void*, int (*)(lws*, lws_callback_reasons, void*, void*, size_t), PoolVector<String>, _LWSRef**)' defined but not used [-Wunused-function] ``` Also fixed a couple other warnings missed in previous commits. |
||
---|---|---|
.. | ||
animated_sprite.cpp | ||
animated_sprite.h | ||
area_2d.cpp | ||
area_2d.h | ||
audio_stream_player_2d.cpp | ||
audio_stream_player_2d.h | ||
back_buffer_copy.cpp | ||
back_buffer_copy.h | ||
camera_2d.cpp | ||
camera_2d.h | ||
canvas_item.cpp | ||
canvas_item.h | ||
canvas_modulate.cpp | ||
canvas_modulate.h | ||
collision_object_2d.cpp | ||
collision_object_2d.h | ||
collision_polygon_2d.cpp | ||
collision_polygon_2d.h | ||
collision_shape_2d.cpp | ||
collision_shape_2d.h | ||
cpu_particles_2d.cpp | ||
cpu_particles_2d.h | ||
joints_2d.cpp | ||
joints_2d.h | ||
light_2d.cpp | ||
light_2d.h | ||
light_occluder_2d.cpp | ||
light_occluder_2d.h | ||
line_2d.cpp | ||
line_2d.h | ||
line_builder.cpp | ||
line_builder.h | ||
mesh_instance_2d.cpp | ||
mesh_instance_2d.h | ||
navigation2d.cpp | ||
navigation2d.h | ||
navigation_polygon.cpp | ||
navigation_polygon.h | ||
node_2d.cpp | ||
node_2d.h | ||
parallax_background.cpp | ||
parallax_background.h | ||
parallax_layer.cpp | ||
parallax_layer.h | ||
particles_2d.cpp | ||
particles_2d.h | ||
path_2d.cpp | ||
path_2d.h | ||
path_texture.cpp | ||
path_texture.h | ||
physics_body_2d.cpp | ||
physics_body_2d.h | ||
polygon_2d.cpp | ||
polygon_2d.h | ||
position_2d.cpp | ||
position_2d.h | ||
ray_cast_2d.cpp | ||
ray_cast_2d.h | ||
remote_transform_2d.cpp | ||
remote_transform_2d.h | ||
screen_button.cpp | ||
screen_button.h | ||
SCsub | ||
skeleton_2d.cpp | ||
skeleton_2d.h | ||
sprite.cpp | ||
sprite.h | ||
tile_map.cpp | ||
tile_map.h | ||
visibility_notifier_2d.cpp | ||
visibility_notifier_2d.h | ||
y_sort.cpp | ||
y_sort.h |