Overview
| Artifact ID: | 008cf37dfdad35b8a1d205eb50f2379b9e1c53ff61ed41d03cad9736eab66c97 |
|---|---|
| Ticket: | 9ffffcbeee43643361435a60e01a2d9661d8e07c
compiler warnings in regcomp.c |
| User & Date: | chrstphrchvz on 2020-09-19 08:10:50 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
Warnings for regcomp.c (at least with Xcode 12): <pre> tcl/generic/regcomp.c:479:33: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Wsign-compare] assert(wanted > 0 && wanted >= v->nsubs); ~~~~~~ ^ ~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/assert.h:93:25: note: expanded from macro 'assert' (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0) ^ tcl/generic/regcomp.c:499:19: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Wsign-compare] assert(wanted < v->nsubs); ~~~~~~ ^ ~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/assert.h:93:25: note: expanded from macro 'assert' (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0) ^ 2 warnings generated. </pre> <tt>wanted</tt> is now <tt>size_t</tt> in Tcl 9; <tt>struct vars</tt> member <tt>nsubs</tt> is still <tt>int</tt>. - foundin changed to: "trunk"
- is_private changed to: "0"
- login: "chrstphrchvz"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Cosmetic"
- status changed to: "Open"
- submitter changed to: "chrstphrchvz"
- subsystem changed to: "43. Regexp"
- title changed to: "compiler warnings in regcomp.c"
- type changed to: "Bug"