Revision: 1467
http://vcs.pcre.org/viewvc?view=rev&revision=1467
Author: ph10
Date: 2014-04-03 17:51:41 +0100 (Thu, 03 Apr 2014)
Log Message:
-----------
Two minor changes to avoid compiler warnings.
Modified Paths:
--------------
code/trunk/pcre_byte_order.c
code/trunk/pcregrep.c
Modified: code/trunk/pcre_byte_order.c
===================================================================
--- code/trunk/pcre_byte_order.c 2014-03-26 18:23:42 UTC (rev 1466)
+++ code/trunk/pcre_byte_order.c 2014-04-03 16:51:41 UTC (rev 1467)
@@ -6,7 +6,7 @@
and semantics are as close as possible to those of the Perl 5 language.
Written by Philip Hazel
- Copyright (c) 1997-2013 University of Cambridge
+ Copyright (c) 1997-2014 University of Cambridge
-----------------------------------------------------------------------------
Redistribution and use in source and binary forms, with or without
@@ -311,9 +311,9 @@
ptr++;
}
/* Control should never reach here in 16/32 bit mode. */
+#else /* In 8-bit mode, the pattern does not need to be processed. */
+return 0;
#endif /* !COMPILE_PCRE8 */
-
-return 0;
}
/* End of pcre_byte_order.c */
Modified: code/trunk/pcregrep.c
===================================================================
--- code/trunk/pcregrep.c 2014-03-26 18:23:42 UTC (rev 1466)
+++ code/trunk/pcregrep.c 2014-04-03 16:51:41 UTC (rev 1467)
@@ -12,7 +12,7 @@
The header can be found in the special z/OS distribution, which is available
from www.zaconsultants.net or from www.cbttape.org.
- Copyright (c) 1997-2013 University of Cambridge
+ Copyright (c) 1997-2014 University of Cambridge
-----------------------------------------------------------------------------
Redistribution and use in source and binary forms, with or without
@@ -1298,7 +1298,7 @@
while (p > startptr && p[-1] != '\n') p--;
if (p <= startptr + 1 || p[-2] == '\r') return p;
}
- return p; /* But control should never get here */
+ /* Control can never get here */
case EL_ANY:
case EL_ANYCRLF: