Changeset 18525 in webkit for trunk/JavaScriptCore
- Timestamp:
- Jan 2, 2007, 9:22:59 AM (18 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r18517 r18525 1 2007-01-02 David Kilzer <[email protected]> 2 3 Reviewed by NOBODY (Windows build fix). 4 5 The MSVC compiler requires variables to be declared at the top of the enclosing block in C source. 6 7 Disable this warning to prevent MSVC from complaining about the 'const pcre_uchar const *' type: 8 warning C4114: same type qualifier used more than once 9 10 * pcre/pcre_compile.c: 11 (pcre_compile2): Moved variable declarations to top of their respective enclosing blocks. 12 * pcre/pcre_internal.h: Added pragma to disable compiler warning. 13 1 14 2007-01-01 Mitz Pettel <[email protected]> 2 15 -
trunk/JavaScriptCore/pcre/pcre_compile.c
r18517 r18525 3956 3956 const uschar *codestart; 3957 3957 const pcre_uchar *ptr; 3958 const pcre_uchar const* patternEnd; 3958 3959 compile_data compile_block; 3959 3960 int brastack[BRASTACK_SIZE]; … … 4046 4047 4047 4048 ptr = (const pcre_uchar *)(pattern - 1); 4048 const pcre_uchar const*patternEnd = (const pcre_uchar *)(pattern + patternLength);4049 patternEnd = (const pcre_uchar *)(pattern + patternLength); 4049 4050 4050 4051 while (++ptr < patternEnd) 4051 4052 { 4052 c = *ptr;4053 4054 4053 int min, max; 4055 4054 int class_optcount; … … 4057 4056 int duplength; 4058 4057 4058 c = *ptr; 4059 4059 4060 /* If we are inside a \Q...\E sequence, all chars are literal */ 4060 4061 -
trunk/JavaScriptCore/pcre/pcre_internal.h
r18517 r18525 58 58 59 59 #if COMPILER(MSVC) 60 #pragma warning(disable: 4114) 60 61 #pragma warning(disable: 4232) 61 62 #pragma warning(disable: 4244)
Note:
See TracChangeset
for help on using the changeset viewer.