[Pcre-svn] [1195] code/trunk: Avoid some VS compiler warning…

Top Page
Delete this message
Author: Subversion repository
Date:  
To: pcre-svn
Subject: [Pcre-svn] [1195] code/trunk: Avoid some VS compiler warnings.
Revision: 1195
          http://www.exim.org/viewvc/pcre2?view=rev&revision=1195
Author:   ph10
Date:     2019-12-26 15:10:26 +0000 (Thu, 26 Dec 2019)
Log Message:
-----------
Avoid some VS compiler warnings.


Modified Paths:
--------------
    code/trunk/ChangeLog
    code/trunk/src/pcre2_jit_compile.c
    code/trunk/src/pcre2_match.c


Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog    2019-12-26 14:53:24 UTC (rev 1194)
+++ code/trunk/ChangeLog    2019-12-26 15:10:26 UTC (rev 1195)
@@ -24,7 +24,9 @@


5. Added PCRE2_SUBSTITUTE_LITERAL.

+6. Avoid some VS compiler warnings.

+
Version 10.34 21-November-2019
------------------------------


Modified: code/trunk/src/pcre2_jit_compile.c
===================================================================
--- code/trunk/src/pcre2_jit_compile.c    2019-12-26 14:53:24 UTC (rev 1194)
+++ code/trunk/src/pcre2_jit_compile.c    2019-12-26 15:10:26 UTC (rev 1195)
@@ -12872,7 +12872,7 @@
 struct sljit_jump *next_alt = NULL;
 struct sljit_jump *accept_exit = NULL;
 struct sljit_label *quit;
-struct sljit_put_label *put_label;
+struct sljit_put_label *put_label = NULL;


/* Recurse captures then. */
common->then_trap = NULL;

Modified: code/trunk/src/pcre2_match.c
===================================================================
--- code/trunk/src/pcre2_match.c    2019-12-26 14:53:24 UTC (rev 1194)
+++ code/trunk/src/pcre2_match.c    2019-12-26 15:10:26 UTC (rev 1195)
@@ -574,8 +574,8 @@
 heapframe *F;           /* Current frame pointer */
 heapframe *N = NULL;    /* Temporary frame pointers */
 heapframe *P = NULL;
-heapframe *assert_accept_frame;  /* For passing back the frame with captures */
-PCRE2_SIZE frame_copy_size;      /* Amount to copy when creating a new frame */
+heapframe *assert_accept_frame = NULL;  /* For passing back a frame with captures */
+PCRE2_SIZE frame_copy_size;     /* Amount to copy when creating a new frame */


/* Local variables that do not need to be preserved over calls to RRMATCH(). */