Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 008cf37dfdad35b8a1d205eb50f2379b9e1c53ff61ed41d03cad9736eab66c97
Ticket: 9ffffcbeee43643361435a60e01a2d9661d8e07c
compiler warnings in regcomp.c
User & Date: chrstphrchvz on 2020-09-19 08:10:50
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. 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>.
    
  5. foundin changed to: "trunk"
  6. is_private changed to: "0"
  7. login: "chrstphrchvz"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Cosmetic"
  11. status changed to: "Open"
  12. submitter changed to: "chrstphrchvz"
  13. subsystem changed to: "43. Regexp"
  14. title changed to: "compiler warnings in regcomp.c"
  15. type changed to: "Bug"