From 2ca46b8b36d14978ee5e724a429f496d9b584823 Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Tue, 29 Sep 2015 16:29:11 +1000 Subject: Mark unused parameters in Objective-C methods with a pragma. --- cocoa/ScintillaView.mm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cocoa/ScintillaView.mm') diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm index da16899eb..180a7542e 100644 --- a/cocoa/ScintillaView.mm +++ b/cocoa/ScintillaView.mm @@ -404,6 +404,7 @@ static NSCursor *cursorFromEnum(Window::Cursor cursor) - (NSRect) firstRectForCharacterRange: (NSRange) aRange actualRange: (NSRangePointer) actualRange { +#pragma unused(actualRange) const NSRange posRange = mOwner.backend->PositionsFromCharacters(aRange); NSRect rect; @@ -737,6 +738,7 @@ static NSCursor *cursorFromEnum(Window::Cursor cursor) - (NSDragOperation)draggingSession: (NSDraggingSession *) session sourceOperationMaskForDraggingContext: (NSDraggingContext) context { +#pragma unused(session) switch(context) { case NSDraggingContextOutsideApplication: @@ -751,12 +753,14 @@ sourceOperationMaskForDraggingContext: (NSDraggingContext) context - (void)draggingSession:(NSDraggingSession *)session movedToPoint:(NSPoint)screenPoint { +#pragma unused(session, screenPoint) } - (void)draggingSession:(NSDraggingSession *)session endedAtPoint:(NSPoint)screenPoint operation:(NSDragOperation)operation { +#pragma unused(session, screenPoint) if (operation == NSDragOperationDelete) { mOwner.backend->WndProc(SCI_CLEAR, 0, 0); @@ -1310,6 +1314,7 @@ sourceOperationMaskForDraggingContext: (NSDraggingContext) context */ - (void) scrollerAction: (id) sender { +#pragma unused(sender) mBackend->UpdateForScroll(); } -- cgit v1.2.3