diff --git a/ChangeLog b/ChangeLog index c288b6c31..aec3a8366 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2013-02-14 Fred Kiefer + + * Source/GSDragView.m + * Source/GSSlideView.m + * Source/NSApplication.m + Resolve clang warnings about wrong format specifiers for NSLog. + Patch by Sebastian Reitenbach + 2013-02-13 Fred Kiefer * Source/GSXibLoader.m: Resolve memory leak for GSXibElement. diff --git a/Source/GSDragView.m b/Source/GSDragView.m index d406346a8..0b2c24713 100644 --- a/Source/GSDragView.m +++ b/Source/GSDragView.m @@ -878,7 +878,7 @@ static GSDragView *sharedDragView = nil; } break; default: - NSLog(@"Internal: dropped event (%d) during dragging", [theEvent type]); + NSLog(@"Internal: dropped event (%d) during dragging", (int)[theEvent type]); } } @@ -1074,7 +1074,7 @@ static GSDragView *sharedDragView = nil; { NSDebugLLog (@"NSDragging", @"Unexpected event type: %d during slide", - [theEvent type]); + (int)[theEvent type]); } newPosition.x = (screenPoint.x + ((float) steps - 1.0) * dragPosition.x) / ((float) steps); diff --git a/Source/GSSlideView.m b/Source/GSSlideView.m index 2d8b8b37c..3ac4a7d19 100644 --- a/Source/GSSlideView.m +++ b/Source/GSSlideView.m @@ -105,7 +105,7 @@ { NSDebugLLog (@"NSDragging", @"Unexpected event type: %d during slide", - [theEvent type]); + (int)[theEvent type]); } } [NSEvent stopPeriodicEvents]; diff --git a/Source/NSApplication.m b/Source/NSApplication.m index f7d12d0ab..f0be6cab5 100644 --- a/Source/NSApplication.m +++ b/Source/NSApplication.m @@ -2091,16 +2091,16 @@ See -runModalForWindow: default: /* pass all other events to the event's window */ { - NSWindow *window = [theEvent window]; + NSWindow *window = [theEvent window]; if (!theEvent) NSDebugLLog(@"NSEvent", @"NSEvent is nil!\n"); if (type == NSMouseMoved) NSDebugLLog(@"NSMotionEvent", @"Send move (%d) to %@", - type, window); + (int)type, window); else NSDebugLLog(@"NSEvent", @"Send NSEvent type: %d to %@", - type, window); + (int)type, window); if (window) [window sendEvent: theEvent]; else if (type == NSRightMouseDown)