diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-10-24 20:57:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-24 20:57:38 +0200 |
commit | 68a54803c28dc2edab99225f2be7f9be0f8dcbed (patch) | |
tree | 3261850d65f12ec41aceab3af5b6a59d938713fd /platform/osx/joypad_osx.cpp | |
parent | ea901b263cbf53d37c4c53b78e2ddb6434b1d183 (diff) | |
parent | 7b64340eb008a11000518b9a15f15c673c7f2f25 (diff) | |
download | redot-engine-68a54803c28dc2edab99225f2be7f9be0f8dcbed.tar.gz |
Merge pull request #33035 from bruvzg/macos_fix_warnings
Fix compilation warnings in macOS build, enable `warnings=extra werror=yes`
Diffstat (limited to 'platform/osx/joypad_osx.cpp')
-rw-r--r-- | platform/osx/joypad_osx.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/osx/joypad_osx.cpp b/platform/osx/joypad_osx.cpp index fa124dac11..4edf347f61 100644 --- a/platform/osx/joypad_osx.cpp +++ b/platform/osx/joypad_osx.cpp @@ -578,7 +578,7 @@ JoypadOSX::JoypadOSX() { const size_t n_elements = sizeof(vals) / sizeof(vals[0]); CFArrayRef array = okay ? CFArrayCreate(kCFAllocatorDefault, vals, n_elements, &kCFTypeArrayCallBacks) : NULL; - for (int i = 0; i < n_elements; i++) { + for (size_t i = 0; i < n_elements; i++) { if (vals[i]) { CFRelease((CFTypeRef)vals[i]); } |