mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 15:31:14 +00:00
Fix some clang static analyser warnings reported by
Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@40485 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
678f486940
commit
3adb72d6e2
5 changed files with 15 additions and 6 deletions
|
@ -1,3 +1,12 @@
|
|||
2017-04-16 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/gsc/GSGState.m
|
||||
* Source/x11/XGDragView.m
|
||||
* Source/x11/XGServerWindow.m
|
||||
* Source/x11/XWindowBuffer.m
|
||||
Fix some clang static analyser warnings reported by
|
||||
Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>.
|
||||
|
||||
2017-04-04 Ivan Vucica <ivan@vucica.net>
|
||||
|
||||
* Releasing 0.25.1.
|
||||
|
|
|
@ -1249,7 +1249,7 @@ typedef enum {
|
|||
out[0] = out[1] = out[2] = 0.0;
|
||||
for (x = NSMinX(rect); x < NSMaxX(rect); x++)
|
||||
{
|
||||
char r, g, b, a;
|
||||
unsigned char r, g, b, a;
|
||||
|
||||
[function eval: in : out];
|
||||
|
||||
|
|
|
@ -428,7 +428,7 @@ static XGDragView *sharedDragView = nil;
|
|||
NSCountedSet *drag_set = [self dragTypesForWindow: win];
|
||||
|
||||
winNum = [win windowNumber];
|
||||
window = [isa _windowWithTag: winNum];
|
||||
window = [[self class] _windowWithTag: winNum];
|
||||
|
||||
GSEnsureDndIsInitialized ();
|
||||
|
||||
|
|
|
@ -2745,7 +2745,7 @@ _get_next_prop_new_event(Display *display, XEvent *event, char *arg)
|
|||
&& (window->buffer_width != width || window->buffer_height != height)
|
||||
&& (window->gdriverProtocol & GDriverHandlesBacking) == 0)
|
||||
{
|
||||
[isa waitAllContexts];
|
||||
[[self class] waitAllContexts];
|
||||
XFreePixmap(dpy, window->buffer);
|
||||
window->buffer = 0;
|
||||
if (window->alpha_buffer)
|
||||
|
@ -3623,7 +3623,7 @@ static BOOL didCreatePixmaps;
|
|||
values.foreground = window->xwn_attrs.background_pixel;
|
||||
valuemask = (GCFunction | GCPlaneMask | GCClipMask | GCForeground);
|
||||
XChangeGC(dpy, window->gc, valuemask, &values);
|
||||
[isa waitAllContexts];
|
||||
[[self class] waitAllContexts];
|
||||
if ((window->gdriverProtocol & GDriverHandlesExpose))
|
||||
{
|
||||
/* Temporary protocol until we standardize the backing buffer */
|
||||
|
@ -3698,7 +3698,7 @@ static BOOL didCreatePixmaps;
|
|||
|
||||
if (width > 0 || height > 0)
|
||||
{
|
||||
[isa waitAllContexts];
|
||||
[[self class] waitAllContexts];
|
||||
if ((window->gdriverProtocol & GDriverHandlesBacking))
|
||||
{
|
||||
NSDebugLLog (@"XGFlush",
|
||||
|
|
|
@ -645,7 +645,7 @@ static int warn = 0;
|
|||
while (XCheckTypedEvent(window->display,
|
||||
XShmGetEventBase(window->display) + ShmCompletion, &e))
|
||||
{
|
||||
[isa _gotShmCompletion: ((XShmCompletionEvent *)&e)->drawable];
|
||||
[[self class] _gotShmCompletion: ((XShmCompletionEvent *)&e)->drawable];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue