[pcre-dev] [Bug 821] New: Unused struct members

Kezdőlap
Üzenet törlése
Szerző: bill
Dátum:  
Címzett: pcre-dev
Tárgy: [pcre-dev] [Bug 821] New: Unused struct members
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=821
           Summary: Unused struct members
           Product: PCRE
           Version: 7.8
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: work:tiny
          Severity: bug
          Priority: low
         Component: Code
        AssignedTo: ph10@???
        ReportedBy: begert@???
                CC: pcre-dev@???, begert@???



Using cppcheck 1.30 against PCRE 7.8 yields:

# cppcheck -s -q .
[pcre_exec.c:337]: (style) struct or union member 'heapframe::Xcharptr' is
never
used
[pcre_exec.c:359]: (style) struct or union member 'heapframe::Xoclength' is
never used
[pcre_exec.c:360]: (style) struct or union member 'heapframe::Xocchars' is
never
used


This is not really a bug but just pointing out some possible unnecessary
members of the struct "heapframe"

I commented them out and tested with default settings and with SUPPORT_UCP
defined with no compilation errors.


On another note, I could only build with SUPPORT_UCP defined if I also defined
SUPPORT_UTF8=1. That might actually be a bug?


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email