# HG changeset patch # User Jim Meyering # Date 787187771 0 # Node ID 692093cc08d7f87a5bf1007103e0b17eff71d386 # Parent ab78d1d2f5d77c12204d36d29e8cc9bb4d5a871e [REG_UNSET_VALUE]: Define to the address of a static variable rather than to ((char *) -1). The latter got a warning on IRIX64. diff -r ab78d1d2f5d7 -r 692093cc08d7 src/regex.c --- 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)