summaryrefslogtreecommitdiffstats
path: root/generic/tk.decls
diff options
context:
space:
mode:
authornijtmans <nijtmans>2008-10-30 21:39:16 (GMT)
committernijtmans <nijtmans>2008-10-30 21:39:16 (GMT)
commitcb121f8ef52b125a4afcf29b8152385b06c82c83 (patch)
tree9b240e7e0a446a742160201af095d711ba73aa70 /generic/tk.decls
parenta0a9d901095eb8838df3cd332576bb665669c2e3 (diff)
downloadtk-cb121f8ef52b125a4afcf29b8152385b06c82c83.zip
tk-cb121f8ef52b125a4afcf29b8152385b06c82c83.tar.gz
tk-cb121f8ef52b125a4afcf29b8152385b06c82c83.tar.bz2
[Bug 2190619] Warnings due to Tk_SmoothMethod
name constness change. Although dkf's solution (simply adding a type cast) is correct as well, changing the return value (as das suggested) has the advantage that all Tk_OptionPrintProc implementations don't need a type cast any more in its code. This makes all those functions robust against the -Wwrite-strings warning option. Further on, the customPtr field of Tk_ConfigSpec can be a constant, without any danger of source incompatibility.
Diffstat (limited to 'generic/tk.decls')
-rw-r--r--generic/tk.decls4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tk.decls b/generic/tk.decls
index 262b922..a71c1e8 100644
--- a/generic/tk.decls
+++ b/generic/tk.decls
@@ -11,7 +11,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: tk.decls,v 1.41 2008/10/28 22:33:06 nijtmans Exp $
+# RCS: @(#) $Id: tk.decls,v 1.42 2008/10/30 21:39:16 nijtmans Exp $
library tk
@@ -106,7 +106,7 @@ declare 18 generic {
Tk_Window tkwin, const char *value, char *widgRec, int offset)
}
declare 19 generic {
- char * Tk_CanvasTagsPrintProc(ClientData clientData, Tk_Window tkwin,
+ CONST86 char * Tk_CanvasTagsPrintProc(ClientData clientData, Tk_Window tkwin,
char *widgRec, int offset, Tcl_FreeProc **freeProcPtr)
}
declare 20 generic {