]> granicus.if.org Git - php/commitdiff
Fix #64711 ("value computed but not used" in parse_date.c)
authorDavid Soria Parra <dsp@php.net>
Fri, 26 Apr 2013 09:33:54 +0000 (11:33 +0200)
committerDavid Soria Parra <dsp@php.net>
Fri, 26 Apr 2013 09:33:54 +0000 (11:33 +0200)
ext/date/lib/parse_date.c
ext/date/lib/parse_date.re

index 9f5593dacb567b70d70c4bea714aa5e242398659..8f707482678a8cee23635d93b2b2e275d93638db 100644 (file)
@@ -1,4 +1,4 @@
-/* Generated by re2c 0.13.5 on Sun Mar 31 10:47:54 2013 */
+/* Generated by re2c 0.13.5 on Fri Apr 26 11:10:28 2013 */
 #line 1 "ext/date/lib/parse_date.re"
 /*
    +----------------------------------------------------------------------+
@@ -25089,7 +25089,7 @@ timelib_time *timelib_parse_from_format(char *format, char *string, int len, tim
                                break;
 
                        case '\\': /* escaped char */
-                               *fptr++;
+                               ++fptr;
                                if (*ptr == *fptr) {
                                        ++ptr;
                                } else {
index 8aaa6c336ed07147c3196bc131d7092dfc92d629..014f6a09e2f37e9dd99633c9872ff055d62c671a 100644 (file)
@@ -2096,7 +2096,7 @@ timelib_time *timelib_parse_from_format(char *format, char *string, int len, tim
                                break;
 
                        case '\\': /* escaped char */
-                               *fptr++;
+                               ++fptr;
                                if (*ptr == *fptr) {
                                        ++ptr;
                                } else {