summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-08-13 08:16:55 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-08-13 08:16:55 (GMT)
commitba22781ef992adf469cab52eaa75cc8b6db26347 (patch)
tree32fad3e25c5acf40a15bb67c38c9846f751ad184
parentce9c14ce313a1844f5adba5ea37f55786d3803da (diff)
parent4b979e70ec779c946337aa243a35c1e46abb4a8b (diff)
downloadtk-ba22781ef992adf469cab52eaa75cc8b6db26347.zip
tk-ba22781ef992adf469cab52eaa75cc8b6db26347.tar.gz
tk-ba22781ef992adf469cab52eaa75cc8b6db26347.tar.bz2
Merge 8.6
-rw-r--r--.travis.yml4
-rw-r--r--macosx/tkMacOSXDraw.c29
-rw-r--r--macosx/tkMacOSXInit.c9
-rw-r--r--macosx/tkMacOSXKeyboard.c13
4 files changed, 18 insertions, 37 deletions
diff --git a/.travis.yml b/.travis.yml
index df0bd2c..e4662b3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,4 +1,3 @@
-sudo: required
language: c
addons:
apt:
@@ -17,8 +16,7 @@ addons:
- tcl-tk
casks:
- xquartz
- update: true
-matrix:
+jobs:
include:
# Testing on Linux with various compilers
- name: "Linux/GCC/Shared"
diff --git a/macosx/tkMacOSXDraw.c b/macosx/tkMacOSXDraw.c
index 71acbbc..8bc949b 100644
--- a/macosx/tkMacOSXDraw.c
+++ b/macosx/tkMacOSXDraw.c
@@ -70,11 +70,10 @@ static void ClipToGC(Drawable d, GC gc, HIShapeRef *clipRgnPtr);
MODULE_SCOPE int
TkMacOSXInitCGDrawing(
Tcl_Interp *interp,
- int enable,
+ TCL_UNUSED(int),
int limit)
{
static Boolean initialized = FALSE;
- (void)enable;
if (!initialized) {
initialized = TRUE;
@@ -866,13 +865,12 @@ XFillPolygon(
GC gc, /* Use this GC. */
XPoint *points, /* Array of points. */
int npoints, /* Number of points. */
- int shape, /* Shape to draw. */
+ TCL_UNUSED(int), /* Shape to draw. */
int mode) /* Drawing mode. */
{
MacDrawable *macWin = (MacDrawable *) d;
TkMacOSXDrawingContext dc;
int i;
- (void)shape;
display->request++;
if (!TkMacOSXSetupDrawingContext(d, gc, 1, &dc)) {
@@ -1445,7 +1443,7 @@ XFillArcs(
int
TkScrollWindow(
Tk_Window tkwin, /* The window to be scrolled. */
- GC gc, /* GC for window to be scrolled. */
+ TCL_UNUSED(GC), /* GC for window to be scrolled. */
int x, int y, /* Position rectangle to be scrolled. */
int width, int height,
int dx, int dy, /* Distance rectangle should be moved. */
@@ -1458,7 +1456,6 @@ TkScrollWindow(
HIShapeRef dmgRgn = NULL, extraRgn = NULL;
NSRect bounds, visRect, scrollSrc, scrollDst;
int result = 0;
- (void)gc;
if (view) {
/*
@@ -1542,12 +1539,9 @@ TkScrollWindow(
void
TkMacOSXSetUpGraphicsPort(
- GC gc, /* GC to apply to current port. */
- void *destPort)
+ TCL_UNUSED(GC), /* GC to apply to current port. */
+ TCL_UNUSED(void *))
{
- (void)gc;
- (void)destPort;
-
Tcl_Panic("TkMacOSXSetUpGraphicsPort: Obsolete, no more QD!");
}
@@ -1574,7 +1568,7 @@ Bool
TkMacOSXSetupDrawingContext(
Drawable d,
GC gc,
- int useCG, /* advisory only ! */
+ TCL_UNUSED(int),
TkMacOSXDrawingContext *dcPtr)
{
MacDrawable *macDraw = (MacDrawable *) d;
@@ -1582,7 +1576,6 @@ TkMacOSXSetupDrawingContext(
NSWindow *win = NULL;
TkMacOSXDrawingContext dc = {};
CGRect clipBounds;
- (void)useCG;
/*
* If the drawable is not a pixmap and it has an associated NSWindow then
@@ -1891,13 +1884,12 @@ TkMacOSXGetClipRgn(
void
TkpClipDrawableToRect(
- Display *display,
+ TCL_UNUSED(Display *),
Drawable d,
int x, int y,
int width, int height)
{
MacDrawable *macDraw = (MacDrawable *) d;
- (void)display;
if (macDraw->drawRgn) {
CFRelease(macDraw->drawRgn);
@@ -1983,12 +1975,9 @@ ClipToGC(
void *
TkMacOSXMakeStippleMap(
- Drawable drawable, /* Window to apply stipple. */
- Drawable stipple) /* The stipple pattern. */
+ TCL_UNUSED(Drawable), /* Window to apply stipple. */
+ TCL_UNUSED(Drawable)) /* The stipple pattern. */
{
- (void)drawable;
- (void)stipple;
-
return NULL;
}
diff --git a/macosx/tkMacOSXInit.c b/macosx/tkMacOSXInit.c
index 74c17a7..ab2400c 100644
--- a/macosx/tkMacOSXInit.c
+++ b/macosx/tkMacOSXInit.c
@@ -491,13 +491,11 @@ TkpGetAppName(
static int
TkMacOSXGetAppPathCmd(
- ClientData dummy,
+ TCL_UNUSED(ClientData),
Tcl_Interp *interp,
int objc,
Tcl_Obj *const objv[])
{
- (void)dummy;
-
if (objc != 1) {
Tcl_WrongNumArgs(interp, 1, objv, NULL);
return TCL_ERROR;
@@ -626,11 +624,10 @@ TkMacOSXDefaultStartupScript(void)
MODULE_SCOPE void*
TkMacOSXGetNamedSymbol(
- const char* module,
- const char* symbol)
+ TCL_UNUSED(const char *),
+ const char *symbol)
{
void *addr = dlsym(RTLD_NEXT, symbol);
- (void)module;
if (!addr) {
(void) dlerror(); /* Clear dlfcn error state */
diff --git a/macosx/tkMacOSXKeyboard.c b/macosx/tkMacOSXKeyboard.c
index ca2a9e5..67ecba3 100644
--- a/macosx/tkMacOSXKeyboard.c
+++ b/macosx/tkMacOSXKeyboard.c
@@ -154,6 +154,8 @@ static int KeyDataToUnicode(UniChar *uniChars, int maxChars,
(void)notification;
#ifdef TK_MAC_DEBUG_NOTIFICATIONS
TKLog(@"-[%@(%p) %s] %@", [self class], self, _cmd, notification);
+#else
+ (void)notification;
#endif
keyboardChanged = YES;
UpdateKeymaps();
@@ -489,13 +491,12 @@ XKeycodeToKeysym(
const char *
TkpGetString(
- TkWindow *winPtr, /* Window where event occurred: Needed to get
+ TCL_UNUSED(TkWindow *), /* Window where event occurred: Needed to get
* input context. */
XEvent *eventPtr, /* X keyboard event. */
Tcl_DString *dsPtr) /* Uninitialized or empty string to hold
* result. */
{
- (void) winPtr; /*unused*/
MacKeycode macKC;
char utfChars[8];
int length = 0;
@@ -588,19 +589,15 @@ XFreeModifiermap(
char *
XKeysymToString(
- KeySym keysym)
+ TCL_UNUSED(KeySym))
{
- (void)keysym;
-
return NULL;
}
KeySym
XStringToKeysym(
- const char* string)
+ TCL_UNUSED(const char *))
{
- (void)string;
-
return NoSymbol;
}