aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Meyering1994-12-11 23:16:11 +0000
committerJim Meyering1994-12-11 23:16:11 +0000
commitb744df55d26723287e13b8e32fdd839bd6f3b2cc (patch)
treeca8adad0842ff5c419465a2052f3e7d6b3052643 /src
parentef8fd672fd04ddc18852c5c44f029a14bb68546e (diff)
downloademacs-b744df55d26723287e13b8e32fdd839bd6f3b2cc.tar.gz
emacs-b744df55d26723287e13b8e32fdd839bd6f3b2cc.zip
[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')
-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
1251 1251
1252 1252
1253/* Registers are set to a sentinel when they haven't yet matched. */ 1253/* Registers are set to a sentinel when they haven't yet matched. */
1254#define REG_UNSET_VALUE ((char *) -1) 1254static char reg_unset_dummy;
1255#define REG_UNSET_VALUE (&reg_unset_dummy)
1255#define REG_UNSET(e) ((e) == REG_UNSET_VALUE) 1256#define REG_UNSET(e) ((e) == REG_UNSET_VALUE)
1256 1257
1257 1258