diff options
author | nijtmans <nijtmans> | 2009-12-16 21:12:24 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2009-12-16 21:12:24 (GMT) |
commit | b1cb69cfd445d8dc85bd5de8dae3ef0384f586c9 (patch) | |
tree | a06e16c0bac8331162b14c8159e517f93bdfe50d /generic | |
parent | 4234ced65ff4cea56909cbbbc71affb96a37abb7 (diff) | |
download | tk-b1cb69cfd445d8dc85bd5de8dae3ef0384f586c9.zip tk-b1cb69cfd445d8dc85bd5de8dae3ef0384f586c9.tar.gz tk-b1cb69cfd445d8dc85bd5de8dae3ef0384f586c9.tar.bz2 |
Fix gcc warning: ignoring return value of ‘strtol’,
declared with attribute warn_unused_result
Fix gcc warning: dereferencing pointer ‘xgePtr’ does
break strict-aliasing rules
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkListbox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkListbox.c b/generic/tkListbox.c index f97dd4c..bd2400e 100644 --- a/generic/tkListbox.c +++ b/generic/tkListbox.c @@ -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: tkListbox.c,v 1.55 2009/02/03 23:55:47 nijtmans Exp $ + * RCS: @(#) $Id: tkListbox.c,v 1.56 2009/12/16 21:12:24 nijtmans Exp $ */ #include "default.h" @@ -2742,7 +2742,7 @@ GetListboxIndex( char *end; start = stringRep + 1; - strtol(start, &end, 0); + y = strtol(start, &end, 0); if ((start == end) || (*end != ',')) { Tcl_AppendResult(interp, "bad listbox index \"", stringRep, "\": must be active, anchor, end, @x,y, or a number", |