aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2016-10-23 02:58:07 -0700
committerPaul Eggert2016-10-23 02:58:31 -0700
commita0d1e4c66296f76635f405427f55dbcc62a4fd68 (patch)
tree3b2a55fe5be69064ed542155108034a19ba37566 /src
parent394bdb8f2317e312d39e071b588581802dd3027a (diff)
downloademacs-a0d1e4c66296f76635f405427f55dbcc62a4fd68.tar.gz
emacs-a0d1e4c66296f76635f405427f55dbcc62a4fd68.zip
* src/regex.c (re_search_2): Use UNINIT, not IF_LINT.
This finishes the merge of the recent emacs-25 regex changes into master.
Diffstat (limited to 'src')
-rw-r--r--src/regex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regex.c b/src/regex.c
index 8bc830356d0..8d769cc6c82 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -4346,7 +4346,8 @@ re_search_2 (struct re_pattern_buffer *bufp, const char *str1, size_t size1,
4346 /* Loop through the string, looking for a place to start matching. */ 4346 /* Loop through the string, looking for a place to start matching. */
4347 for (;;) 4347 for (;;)
4348 { 4348 {
4349 ptrdiff_t offset1, offset2; 4349 ptrdiff_t offset1;
4350 ptrdiff_t offset2 UNINIT; /* The UNINIT works around GCC bug 78081. */
4350 re_char *orig_base; 4351 re_char *orig_base;
4351 bool might_relocate; 4352 bool might_relocate;
4352 4353
@@ -4468,7 +4469,6 @@ re_search_2 (struct re_pattern_buffer *bufp, const char *str1, size_t size1,
4468 4469
4469 /* re_match_2_internal may allocate, relocating the Lisp text 4470 /* re_match_2_internal may allocate, relocating the Lisp text
4470 object that we're searching. */ 4471 object that we're searching. */
4471 IF_LINT (offset2 = 0); /* Work around GCC bug 78081. */
4472 orig_base = STR_BASE_PTR (re_match_object); 4472 orig_base = STR_BASE_PTR (re_match_object);
4473 might_relocate = orig_base != NULL; 4473 might_relocate = orig_base != NULL;
4474 if (might_relocate) 4474 if (might_relocate)