summaryrefslogtreecommitdiffstats
path: root/doc/ConfigWidg.3
diff options
context:
space:
mode:
authornijtmans <nijtmans@noemail.net>2008-10-30 21:39:16 (GMT)
committernijtmans <nijtmans@noemail.net>2008-10-30 21:39:16 (GMT)
commitf53906244fdcc8849613306bcf86dc7336b44ef2 (patch)
tree9b240e7e0a446a742160201af095d711ba73aa70 /doc/ConfigWidg.3
parent01dc6d59ebc15a25c7e1ee3ded3d24b96cc49a51 (diff)
downloadtk-f53906244fdcc8849613306bcf86dc7336b44ef2.zip
tk-f53906244fdcc8849613306bcf86dc7336b44ef2.tar.gz
tk-f53906244fdcc8849613306bcf86dc7336b44ef2.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. FossilOrigin-Name: bb3ffd4977c1850656227cd5e05f0d820792eacf
Diffstat (limited to 'doc/ConfigWidg.3')
-rw-r--r--doc/ConfigWidg.36
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/ConfigWidg.3 b/doc/ConfigWidg.3
index d26878a..0b76ef4 100644
--- a/doc/ConfigWidg.3
+++ b/doc/ConfigWidg.3
@@ -5,7 +5,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: ConfigWidg.3,v 1.21 2008/06/30 22:57:00 dkf Exp $
+'\" RCS: @(#) $Id: ConfigWidg.3,v 1.22 2008/10/30 21:39:16 nijtmans Exp $
'\"
.so man.macros
.TH Tk_ConfigureWidget 3 4.1 Tk "Tk Library Procedures"
@@ -111,7 +111,7 @@ typedef struct {
char *\fIdefValue\fR;
int \fIoffset\fR;
int \fIspecFlags\fR;
- Tk_CustomOption *\fIcustomPtr\fR;
+ const Tk_CustomOption *\fIcustomPtr\fR;
} \fBTk_ConfigSpec\fR;
.CE
The \fItype\fR field indicates what type of configuration option this is
@@ -557,7 +557,7 @@ typedef int \fBTk_OptionParseProc\fR(
char *\fIwidgRec\fR,
int \fIoffset\fR);
-typedef char *\fBTk_OptionPrintProc\fR(
+typedef const char *\fBTk_OptionPrintProc\fR(
ClientData \fIclientData\fR,
Tk_Window \fItkwin\fR,
char *\fIwidgRec\fR,