From 3a78e396e76182a4d085c2e2fb49c3ee24686d46 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 11 Dec 1994 23:16:11 +0000 Subject: [PATCH] [REG_UNSET_VALUE]: Define to the address of a static variable rather than to ((char *) -1). The latter got a warning on IRIX64. --- regex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/regex.c b/regex.c index fe527dd229..2d291b323e 100644 --- a/regex.c +++ b/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 (®_unset_dummy) #define REG_UNSET(e) ((e) == REG_UNSET_VALUE) -- 2.30.2