Resolve clang warnings about wrong format specifiers for NSLog.

Patch by Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36133 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2013-02-14 08:58:05 +00:00
parent f6f497fdee
commit 4f21ccbe3d
4 changed files with 14 additions and 6 deletions

View file

@ -1,3 +1,11 @@
2013-02-14 Fred Kiefer <FredKiefer@gmx.de>
* Source/GSDragView.m
* Source/GSSlideView.m
* Source/NSApplication.m
Resolve clang warnings about wrong format specifiers for NSLog.
Patch by Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>
2013-02-13 Fred Kiefer <FredKiefer@gmx.de> 2013-02-13 Fred Kiefer <FredKiefer@gmx.de>
* Source/GSXibLoader.m: Resolve memory leak for GSXibElement. * Source/GSXibLoader.m: Resolve memory leak for GSXibElement.

View file

@ -878,7 +878,7 @@ static GSDragView *sharedDragView = nil;
} }
break; break;
default: 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", NSDebugLLog (@"NSDragging",
@"Unexpected event type: %d during slide", @"Unexpected event type: %d during slide",
[theEvent type]); (int)[theEvent type]);
} }
newPosition.x = (screenPoint.x + ((float) steps - 1.0) newPosition.x = (screenPoint.x + ((float) steps - 1.0)
* dragPosition.x) / ((float) steps); * dragPosition.x) / ((float) steps);

View file

@ -105,7 +105,7 @@
{ {
NSDebugLLog (@"NSDragging", NSDebugLLog (@"NSDragging",
@"Unexpected event type: %d during slide", @"Unexpected event type: %d during slide",
[theEvent type]); (int)[theEvent type]);
} }
} }
[NSEvent stopPeriodicEvents]; [NSEvent stopPeriodicEvents];

View file

@ -2091,16 +2091,16 @@ See -runModalForWindow:
default: /* pass all other events to the event's window */ default: /* pass all other events to the event's window */
{ {
NSWindow *window = [theEvent window]; NSWindow *window = [theEvent window];
if (!theEvent) if (!theEvent)
NSDebugLLog(@"NSEvent", @"NSEvent is nil!\n"); NSDebugLLog(@"NSEvent", @"NSEvent is nil!\n");
if (type == NSMouseMoved) if (type == NSMouseMoved)
NSDebugLLog(@"NSMotionEvent", @"Send move (%d) to %@", NSDebugLLog(@"NSMotionEvent", @"Send move (%d) to %@",
type, window); (int)type, window);
else else
NSDebugLLog(@"NSEvent", @"Send NSEvent type: %d to %@", NSDebugLLog(@"NSEvent", @"Send NSEvent type: %d to %@",
type, window); (int)type, window);
if (window) if (window)
[window sendEvent: theEvent]; [window sendEvent: theEvent];
else if (type == NSRightMouseDown) else if (type == NSRightMouseDown)