diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-03-05 22:15:07 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-03-05 22:15:07 (GMT) |
commit | d02acd85db6c30b28e7c2e98e46955076d44c406 (patch) | |
tree | 06dd9ca6a4bde441b4ab228b484436dd97ecb3b1 /macosx/tkMacOSXDraw.c | |
parent | 3cc748dc86a2c3c813e2c7d9409a58e9a239d9c8 (diff) | |
download | tk-d02acd85db6c30b28e7c2e98e46955076d44c406.zip tk-d02acd85db6c30b28e7c2e98e46955076d44c406.tar.gz tk-d02acd85db6c30b28e7c2e98e46955076d44c406.tar.bz2 |
Eliminate many -Wextra warnings
Diffstat (limited to 'macosx/tkMacOSXDraw.c')
-rw-r--r-- | macosx/tkMacOSXDraw.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/macosx/tkMacOSXDraw.c b/macosx/tkMacOSXDraw.c index 82b433a..e6ccf20 100644 --- a/macosx/tkMacOSXDraw.c +++ b/macosx/tkMacOSXDraw.c @@ -1453,6 +1453,7 @@ TkScrollWindow( HIShapeRef dmgRgn = NULL, extraRgn = NULL; NSRect bounds, visRect, scrollSrc, scrollDst; int result = 0; + (void)gc; if (view) { /* @@ -1539,6 +1540,9 @@ TkMacOSXSetUpGraphicsPort( GC gc, /* GC to apply to current port. */ void *destPort) { + (void)gc; + (void)destPort; + Tcl_Panic("TkMacOSXSetUpGraphicsPort: Obsolete, no more QD!"); } @@ -1573,6 +1577,7 @@ TkMacOSXSetupDrawingContext( NSWindow *win = NULL; TkMacOSXDrawingContext dc = {}; CGRect clipBounds; + (void)useCG; /* * If the drawable is not a pixmap and it has an associated NSWindow then @@ -1874,6 +1879,7 @@ void TkMacOSXSetUpClippingRgn( Drawable drawable) /* Drawable to update. */ { + (void)drawable; } /* @@ -1901,6 +1907,7 @@ TkpClipDrawableToRect( int width, int height) { MacDrawable *macDraw = (MacDrawable *) d; + (void)display; if (macDraw->drawRgn) { CFRelease(macDraw->drawRgn); @@ -1989,6 +1996,9 @@ TkMacOSXMakeStippleMap( Drawable drawable, /* Window to apply stipple. */ Drawable stipple) /* The stipple pattern. */ { + (void)drawable; + (void)stipple; + return NULL; } |