From 545af8557a68f5f34e74349d6dee9d8319df6f7c Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 26 Aug 2013 20:09:38 -0600 Subject: [PATCH] fix whitespace_regexp warning --- src/thread.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/thread.h b/src/thread.h index e77d1144ecf..231c7acc31f 100644 --- a/src/thread.h +++ b/src/thread.h @@ -147,7 +147,9 @@ struct thread_state #define re_syntax_options (current_thread->m_re_syntax_options) /* Regexp to use to replace spaces, or NULL meaning don't. */ - /*re_char*/ unsigned char *m_whitespace_regexp; + /* This ought to be a "const re_char *" but that is not available + outside regex.h. */ + const void *m_whitespace_regexp; #define whitespace_regexp (current_thread->m_whitespace_regexp) /* This variable is different from waiting_for_input in keyboard.c. -- 2.39.5