godot/scene/resources
Rémi Verschelde 62ecb44035 Fix warning about functions defined but not used [-Wunused-function]
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.
2018-09-29 22:26:12 +02:00
..
default_theme Fix warning about functions defined but not used [-Wunused-function] 2018-09-29 22:26:12 +02:00
animation.cpp Merge pull request #21982 from luzpaz/misc-typos 2018-09-13 10:59:00 +02:00
animation.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
audio_stream_sample.cpp Fix warnings for comparison between signed and unsigned integers [-Wsign-compare] 2018-09-27 16:25:23 +02:00
audio_stream_sample.h Audio Recording module 2018-07-26 14:14:29 +02:00
bit_mask.cpp Fix warnings about unused variables [-Wunused-variable] 2018-09-27 16:25:24 +02:00
bit_mask.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
bounds.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
bounds.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
box_shape.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
box_shape.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
canvas.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
canvas.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
capsule_shape_2d.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
capsule_shape_2d.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
capsule_shape.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
capsule_shape.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
circle_shape_2d.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
circle_shape_2d.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
color_ramp.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
color_ramp.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
concave_polygon_shape_2d.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
concave_polygon_shape_2d.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
concave_polygon_shape.cpp Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
concave_polygon_shape.h Bind many more properties to scripts 2018-01-12 00:58:14 +02:00
convex_polygon_shape_2d.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
convex_polygon_shape_2d.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
convex_polygon_shape.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
convex_polygon_shape.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
curve.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
curve.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
cylinder_shape.cpp added cylinder shape support 2018-07-01 11:16:54 +02:00
cylinder_shape.h added cylinder shape support 2018-07-01 11:16:54 +02:00
dynamic_font_stb.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
dynamic_font_stb.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
dynamic_font.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
dynamic_font.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
environment.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
environment.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
font.cpp Clear textures before setting new textures (#21718) 2018-09-17 20:52:45 +02:00
font.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
material.cpp Many fixes to GLES2 renderer, fixed compilation issues in GLES3 shaders. 2018-09-29 13:49:34 -03:00
material.h -Lightmap and lightmap capture support for GLES2 2018-09-28 20:33:18 -03:00
mesh_data_tool.cpp Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
mesh_data_tool.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
mesh_library.cpp Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
mesh_library.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
mesh.cpp Fix warnings about unused variables [-Wunused-variable] 2018-09-27 16:25:24 +02:00
mesh.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
multimesh.cpp Fixes to multimesh, added custom data and checks to avoid reconfiguring if instance count > 0. Fixes #12595 2018-09-05 19:15:59 -03:00
multimesh.h Fixes to multimesh, added custom data and checks to avoid reconfiguring if instance count > 0. Fixes #12595 2018-09-05 19:15:59 -03:00
packed_scene.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
packed_scene.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
particles_material.cpp Fix warnings about unhandled enum value in switch [-Wswitch] 2018-09-27 18:34:30 +02:00
particles_material.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
physics_material.cpp Add missing copyright headers 2018-08-29 22:41:17 +02:00
physics_material.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
plane_shape.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
plane_shape.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
polygon_path_finder.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
polygon_path_finder.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
primitive_meshes.cpp Fix SoftBody gizmo slowness, add ConcaveShape wireframe 2018-09-09 19:39:34 +02:00
primitive_meshes.h Added a simpler way to flip faces, closes #17373 and closes #17369 2018-05-07 18:55:05 -03:00
ray_shape.cpp Improved ray shape (2D and 3D) by addiing the possibility to act as regular shape 2018-02-19 20:59:57 +01:00
ray_shape.h Improved ray shape (2D and 3D) by addiing the possibility to act as regular shape 2018-02-19 20:59:57 +01:00
rectangle_shape_2d.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
rectangle_shape_2d.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
room.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
room.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
scene_format_text.cpp Merge pull request #21982 from luzpaz/misc-typos 2018-09-13 10:59:00 +02:00
scene_format_text.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
SCsub SCons: Build thirdparty code in own env, disable warnings 2018-09-28 14:07:39 +02:00
segment_shape_2d.cpp Improved ray shape (2D and 3D) by addiing the possibility to act as regular shape 2018-02-19 20:59:57 +01:00
segment_shape_2d.h Improved ray shape (2D and 3D) by addiing the possibility to act as regular shape 2018-02-19 20:59:57 +01:00
shader.cpp Don't open VisualShaders in the text shader editor, and don't support saving them with the "shader" extension. 2018-09-14 22:30:48 -04:00
shader.h Don't open VisualShaders in the text shader editor, and don't support saving them with the "shader" extension. 2018-09-14 22:30:48 -04:00
shape_2d.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
shape_2d.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
shape_line_2d.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
shape_line_2d.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
shape.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
shape.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
sky_box.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
sky_box.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
space_2d.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
space_2d.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
sphere_shape.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
sphere_shape.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
style_box.cpp Visual Shaders are back. 2018-07-14 18:16:18 -03:00
style_box.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
surface_tool.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
surface_tool.h Added flip switch to generate_normals 2018-02-19 22:40:34 +03:00
text_file.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
text_file.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
texture.cpp -Lightmap and lightmap capture support for GLES2 2018-09-28 20:33:18 -03:00
texture.h Mark AnimatedTexture frame_* properties as internal 2018-09-13 22:54:35 +02:00
theme.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
theme.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
tile_set.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
tile_set.h Fix warnings about wrong member initialization order [-Wreorder] 2018-09-28 17:30:28 +02:00
video_stream.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
video_stream.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
visual_shader_nodes.cpp Add missing copyright headers 2018-08-29 22:41:17 +02:00
visual_shader_nodes.h Add missing copyright headers 2018-08-29 22:41:17 +02:00
visual_shader.cpp Fix various warnings: [-Waddress], [-Wpointer-arith], [-Wwrite-strings], [-Wreturn-local-addr] and more 2018-09-27 16:33:52 +02:00
visual_shader.h Don't open VisualShaders in the text shader editor, and don't support saving them with the "shader" extension. 2018-09-14 22:30:48 -04:00
world_2d.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
world_2d.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
world.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
world.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00