Silence warnings from clang.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@36106 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2013-02-10 17:32:47 +00:00
parent 2e7c3caf85
commit 5a5f73e79c
9 changed files with 38 additions and 18 deletions

View file

@ -1,3 +1,15 @@
2013-02-10 Fred Kiefer <FredKiefer@gmx.de>
* Headers/cairo/CairoGState.h
* Source/cairo/CairoGState.m
* Source/cairo/XGCairoXImageSurface.m
* Source/gsc/GSContext.m
* Source/gsc/GSStreamContext.m
* Source/gsc/GSStreamGState.m
* Source/x11/XGServerWindow.m
* Source/x11/XGDragView.m:
Silence warnings from clang.
2013-02-01 Fred Kiefer <FredKiefer@gmx.de>
* Source/winlib/WIN32Context.m(-isCompatibleBitmap): Add

View file

@ -38,7 +38,7 @@
CairoSurface *_surface;
}
- (void) GSCurrentSurface: (CairoSurface **)surface: (int *)x : (int *)y;
- (void) GSCurrentSurface: (CairoSurface **)surface : (int *)x : (int *)y;
- (void) GSSetSurface: (CairoSurface *)surface : (int)x : (int)y;
- (void) showPage;

View file

@ -267,7 +267,7 @@ static inline CGFloat floatToUserSpace(NSAffineTransform *ctm, double d)
return copy;
}
- (void) GSCurrentSurface: (CairoSurface **)surface: (int *)x : (int *)y
- (void) GSCurrentSurface: (CairoSurface **)surface : (int *)x : (int *)y
{
if (x)
*x = offset.x;

View file

@ -44,7 +44,7 @@
// I see no reason, why it isn't working, as the code is identical
// to the one in the art backend.
RELEASE(self);
return [[XGCairoSurface alloc] initWithDevice: device];
return (XGCairoXImageSurface*)[[XGCairoSurface alloc] initWithDevice: device];
}
di.drawing_depth = GSWINDEVICE->depth;

View file

@ -867,7 +867,7 @@ static NSMapTable *gtable;
return ([bitmap bitmapFormat] == 0);
}
- (void) GSDrawImage: (NSRect) rect: (void *) imageref
- (void) GSDrawImage: (NSRect) rect : (void *) imageref
{
NSBitmapImageRep *bitmap;
unsigned char *data[5];

View file

@ -736,7 +736,7 @@ fpfloat(FILE *stream, float f)
}
}
- (void) GSRectClipList: (const NSRect *)rects: (int)count
- (void) GSRectClipList: (const NSRect *)rects : (int)count
{
int i;
NSRect union_rect;
@ -757,7 +757,7 @@ fpfloat(FILE *stream, float f)
: NSWidth(union_rect) : NSHeight(union_rect)];
}
- (void) GSRectFillList: (const NSRect *)rects: (int)count
- (void) GSRectFillList: (const NSRect *)rects : (int)count
{
int i;
for (i = 0; i < count; i++)

View file

@ -62,13 +62,13 @@
*linejoin = clinejoin;
}
- (void) DPScurrentlinewidth: (float*)width
- (void) DPScurrentlinewidth: (CGFloat*)width
{
if (width)
*width = clinewidth;
}
- (void) DPScurrentmiterlimit: (float*)limit
- (void) DPScurrentmiterlimit: (CGFloat*)limit
{
if (limit)
*limit = cmiterlimit;
@ -90,12 +90,12 @@
clinejoin = linejoin;
}
- (void) DPSsetlinewidth: (float)width
- (void) DPSsetlinewidth: (CGFloat)width
{
clinewidth = width;
}
- (void) DPSsetmiterlimit: (float)limit
- (void) DPSsetmiterlimit: (CGFloat)limit
{
cmiterlimit = limit;
}
@ -106,5 +106,3 @@
}
@end

View file

@ -485,7 +485,7 @@ static XGDragView *sharedDragView = nil;
[self setExcludedFromWindowsMenu: YES];
}
- (void) orderWindow: (NSWindowOrderingMode)place relativeTo: (int)otherWin
- (void) orderWindow: (NSWindowOrderingMode)place relativeTo: (NSInteger)otherWin
{
XSetWindowAttributes winattrs;
unsigned long valuemask;

View file

@ -1345,9 +1345,19 @@ _get_next_prop_new_event(Display *display, XEvent *event, char *arg)
window->visibility = -1;
window->wm_state = NormalState;
if (window->ident)
XGetGeometry(dpy, window->ident, &window->root,
&x, &y, &width, &height,
&window->border, &window->depth);
{
XGetGeometry(dpy, window->ident, &window->root,
&x, &y, &width, &height,
&window->border, &window->depth);
}
else
{
NSLog(@"Failed to get root window");
x = 0;
y = 0;
width = 0;
height = 0;
}
window->xframe = NSMakeRect(x, y, width, height);
NSMapInsert (windowtags, (void*)(uintptr_t)window->number, window);
@ -2526,7 +2536,7 @@ NSLog(@"styleoffsets ... guessing offsets\n");
if (!window)
return;
NSDebugLLog(@"XGTrace", @"DPSwindowbacking: %@ : %d", type, win);
NSDebugLLog(@"XGTrace", @"DPSwindowbacking: %d : %d", type, win);
if ((window->gdriverProtocol & GDriverHandlesBacking))
{
@ -3908,7 +3918,7 @@ static BOOL didCreatePixmaps;
}
/** Sets the transparancy value for the whole window */
- (void) setalpha: (float)alpha: (int) win
- (void) setalpha: (float)alpha : (int) win
{
gswindow_device_t *window = WINDOW_WITH_TAG(win);
static Atom opacity_atom = None;