From: Jim Meyering Date: Sun, 11 Dec 1994 23:16:11 +0000 (+0000) Subject: [REG_UNSET_VALUE]: Define to the address of a static variable rather than to X-Git-Tag: emacs-19.34~5707 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b744df55d26723287e13b8e32fdd839bd6f3b2cc;p=emacs.git [REG_UNSET_VALUE]: Define to the address of a static variable rather than to ((char *) -1). The latter got a warning on IRIX64. --- 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 (®_unset_dummy) #define REG_UNSET(e) ((e) == REG_UNSET_VALUE)