summaryrefslogtreecommitdiff
path: root/thirdparty/minizip/unzip.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-12-17 12:28:09 +0100
committerRémi Verschelde <rverschelde@gmail.com>2018-12-17 12:28:11 +0100
commit28b10ea66821e8de6c387a83c0218e006566079d (patch)
tree5b89f68105c27115749254a25f3cf1edcf0798db /thirdparty/minizip/unzip.h
parent4b6e7b50b9a0f4f7496b2d01cd07e6c386679abe (diff)
Fix sometimes uninitialized variable warning raised by Xcode 9.4.1
Fixes this warning raised by Travis CI on macOS: ``` editor/plugins/polygon_2d_editor_plugin.cpp:95:6: warning: variable 'skeleton' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] if (!node->has_node(node->get_skeleton())) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ editor/plugins/polygon_2d_editor_plugin.cpp:106:7: note: uninitialized use occurs here if (!skeleton) { ^~~~~~~~ editor/plugins/polygon_2d_editor_plugin.cpp:95:2: note: remove the 'if' if its condition is always false if (!node->has_node(node->get_skeleton())) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ editor/plugins/polygon_2d_editor_plugin.cpp:94:22: note: initialize the variable 'skeleton' to silence this warning Skeleton2D *skeleton; ^ = NULL ```
Diffstat (limited to 'thirdparty/minizip/unzip.h')
0 files changed, 0 insertions, 0 deletions