summaryrefslogtreecommitdiff
path: root/scene/gui/texture_button.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-09-28 09:47:29 +0200
committerGitHub <noreply@github.com>2018-09-28 09:47:29 +0200
commitc7e646c30a5ca9abcd04383381d9a216cd2ee185 (patch)
tree431cb56ac164abee8845af163f9c23f7dbc3b1ab /scene/gui/texture_button.cpp
parent1c60465c5958446a2daccc54a1c58c3dee9b21a3 (diff)
parent7b081a7fc8011c5ce7194fc0eabb8768e0f9d4c6 (diff)
Merge pull request #22447 from akien-mga/fix-warnings-Wswitch
Fix warnings about unhandled enum value in switch [-Wswitch]
Diffstat (limited to 'scene/gui/texture_button.cpp')
-rw-r--r--scene/gui/texture_button.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/gui/texture_button.cpp b/scene/gui/texture_button.cpp
index 6bd3b26280..a6a57b010f 100644
--- a/scene/gui/texture_button.cpp
+++ b/scene/gui/texture_button.cpp
@@ -88,6 +88,9 @@ bool TextureButton::has_point(const Point2 &p_point) const {
scale.y = min;
ofs -= _texture_region.position / min;
} break;
+ default: {
+ // FIXME: Why a switch if we only handle one enum value?
+ }
}
// offset and scale the new point position to adjust it to the bitmask size