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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.