Changeset 18525 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Jan 2, 2007, 9:22:59 AM (18 years ago)
Author:
ddkilzer
Message:

JavaScriptCore:

Reviewed by NOBODY (Windows build fix).

The MSVC compiler requires variables to be declared at the top of the enclosing block in C source.

Disable this warning to prevent MSVC from complaining about the 'const pcre_uchar const *' type:
warning C4114: same type qualifier used more than once

  • pcre/pcre_compile.c: (pcre_compile2): Moved variable declarations to top of their respective enclosing blocks.
  • pcre/pcre_internal.h: Added pragma to disable compiler warning.
Location:
trunk/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r18517 r18525  
     12007-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
    1142007-01-01  Mitz Pettel  <[email protected]>
    215
  • trunk/JavaScriptCore/pcre/pcre_compile.c

    r18517 r18525  
    39563956const uschar *codestart;
    39573957const pcre_uchar *ptr;
     3958const pcre_uchar const* patternEnd;
    39583959compile_data compile_block;
    39593960int brastack[BRASTACK_SIZE];
     
    40464047
    40474048ptr = (const pcre_uchar *)(pattern - 1);
    4048 const pcre_uchar const* patternEnd = (const pcre_uchar *)(pattern + patternLength);
     4049patternEnd = (const pcre_uchar *)(pattern + patternLength);
    40494050
    40504051while (++ptr < patternEnd)
    40514052  {
    4052   c = *ptr;
    4053  
    40544053  int min, max;
    40554054  int class_optcount;
     
    40574056  int duplength;
    40584057
     4058  c = *ptr;
     4059 
    40594060  /* If we are inside a \Q...\E sequence, all chars are literal */
    40604061
  • trunk/JavaScriptCore/pcre/pcre_internal.h

    r18517 r18525  
    5858
    5959#if COMPILER(MSVC)
     60#pragma warning(disable: 4114)
    6061#pragma warning(disable: 4232)
    6162#pragma warning(disable: 4244)
Note: See TracChangeset for help on using the changeset viewer.