summaryrefslogtreecommitdiff
path: root/core/math/vector2.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-01-20 15:34:41 +0100
committerGitHub <noreply@github.com>2022-01-20 15:34:41 +0100
commit9e0973ca23423f270df3589e2766a0918e409526 (patch)
tree23dcbc05cd421ea5d31edbbb052cfb871b9ce1ec /core/math/vector2.h
parent3eb585e478d81a3181c2f32356d6a0c69c19db4a (diff)
parentb411a731fef9af1c0a73e4d5b718e5a6b12af1c2 (diff)
Merge pull request #56972 from lawnjelly/warn_unused
Diffstat (limited to 'core/math/vector2.h')
-rw-r--r--core/math/vector2.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/math/vector2.h b/core/math/vector2.h
index a340036ac7..af40b9e68d 100644
--- a/core/math/vector2.h
+++ b/core/math/vector2.h
@@ -36,7 +36,7 @@
struct Vector2i;
-struct Vector2 {
+struct _NO_DISCARD_ Vector2 {
static const int AXIS_COUNT = 2;
enum Axis {
@@ -284,7 +284,7 @@ typedef Vector2 Point2;
/* INTEGER STUFF */
-struct Vector2i {
+struct _NO_DISCARD_ Vector2i {
enum Axis {
AXIS_X,
AXIS_Y,