diff options
Diffstat (limited to 'cocoa')
| -rw-r--r-- | cocoa/ScintillaCocoa.mm | 1 | ||||
| -rw-r--r-- | cocoa/ScintillaView.mm | 5 | 
2 files changed, 6 insertions, 0 deletions
| diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm index 76614ce3e..9756b5e9b 100644 --- a/cocoa/ScintillaCocoa.mm +++ b/cocoa/ScintillaCocoa.mm @@ -1282,6 +1282,7 @@ void ScintillaCocoa::DragScroll()  - (void)pasteboard:(NSPasteboard *)pasteboard item:(NSPasteboardItem *)item provideDataForType:(NSString *)type  { +#pragma unused(item)    if (selectedText.Length() == 0)      return; 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();  } | 
