Mercurial > emacs
diff src/regex.c @ 10148:692093cc08d7
[REG_UNSET_VALUE]: Define to the address of a static variable rather than to
((char *) -1). The latter got a warning on IRIX64.
| author | Jim Meyering <jim@meyering.net> |
|---|---|
| date | Sun, 11 Dec 1994 23:16:11 +0000 |
| parents | 461530f66e34 |
| children | 8fa35cc770be |
line wrap: on
line diff
--- a/src/regex.c Sun Dec 11 11:36:13 1994 +0000 +++ b/src/regex.c Sun Dec 11 23:16:11 1994 +0000 @@ -1251,7 +1251,8 @@ /* 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)
