summaryrefslogtreecommitdiff
path: root/src/regex.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-12-11 23:16:11 +0000
committerJim Meyering <jim@meyering.net>1994-12-11 23:16:11 +0000
commitf479379ec6c2d27cae95bf9abe2ffb20f410550b (patch)
tree2fc87aba517353df4468c532705c65a35e608ee4 /src/regex.c
parent4c6edb779475591695573017011e1c18c19bd322 (diff)
downloademacs-f479379ec6c2d27cae95bf9abe2ffb20f410550b.tar.gz
[REG_UNSET_VALUE]: Define to the address of a static variable rather than to
((char *) -1). The latter got a warning on IRIX64.
Diffstat (limited to 'src/regex.c')
-rw-r--r--src/regex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/regex.c b/src/regex.c
index fe527dd2294..2d291b323e1 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -1251,7 +1251,8 @@ typedef union
/* Registers are set to a sentinel when they haven't yet matched. */
-#define REG_UNSET_VALUE ((char *) -1)
+static char reg_unset_dummy;
+#define REG_UNSET_VALUE (&reg_unset_dummy)
#define REG_UNSET(e) ((e) == REG_UNSET_VALUE)