Fixed bug 3874 - Compiler warnings SDL_Surface.c and SDL_cocoakeyboard.m

This commit is contained in:
Sam Lantinga 2017-10-12 08:41:11 -07:00
parent a7c79c5e25
commit f4f9e39f62
2 changed files with 4 additions and 4 deletions

View file

@ -939,7 +939,7 @@ SDLTest_CommonInit(SDLTest_CommonState * state)
} }
/* Add resize/drag areas for windows that are borderless and resizable */ /* Add resize/drag areas for windows that are borderless and resizable */
if ((state->window_flags & SDL_WINDOW_RESIZABLE|SDL_WINDOW_BORDERLESS) == if ((state->window_flags & (SDL_WINDOW_RESIZABLE|SDL_WINDOW_BORDERLESS)) ==
(SDL_WINDOW_RESIZABLE|SDL_WINDOW_BORDERLESS)) { (SDL_WINDOW_RESIZABLE|SDL_WINDOW_BORDERLESS)) {
SDL_SetWindowHitTest(state->windows[i], SDLTest_ExampleHitTestCallback, NULL); SDL_SetWindowHitTest(state->windows[i], SDLTest_ExampleHitTestCallback, NULL);
} }

View file

@ -93,7 +93,7 @@
return _selectedRange; return _selectedRange;
} }
- (void)setMarkedText:(id)aString selectedRange:(NSRange)selectedRange replacementRange:(NSRange)replacementRange; - (void)setMarkedText:(id)aString selectedRange:(NSRange)selectedRange replacementRange:(NSRange)replacementRange
{ {
if ([aString isKindOfClass:[NSAttributedString class]]) { if ([aString isKindOfClass:[NSAttributedString class]]) {
aString = [aString string]; aString = [aString string];
@ -127,7 +127,7 @@
SDL_SendEditingText("", 0, 0); SDL_SendEditingText("", 0, 0);
} }
- (NSRect)firstRectForCharacterRange:(NSRange)aRange actualRange:(NSRangePointer)actualRange; - (NSRect)firstRectForCharacterRange:(NSRange)aRange actualRange:(NSRangePointer)actualRange
{ {
NSWindow *window = [self window]; NSWindow *window = [self window];
NSRect contentRect = [window contentRectForFrameRect:[window frame]]; NSRect contentRect = [window contentRectForFrameRect:[window frame]];
@ -155,7 +155,7 @@
return rect; return rect;
} }
- (NSAttributedString *)attributedSubstringForProposedRange:(NSRange)aRange actualRange:(NSRangePointer)actualRange; - (NSAttributedString *)attributedSubstringForProposedRange:(NSRange)aRange actualRange:(NSRangePointer)actualRange
{ {
DEBUG_IME(@"attributedSubstringFromRange: (%d, %d)", aRange.location, aRange.length); DEBUG_IME(@"attributedSubstringFromRange: (%d, %d)", aRange.location, aRange.length);
return nil; return nil;