changeset 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 ab78d1d2f5d7
children c1704135914f
files src/regex.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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 (&reg_unset_dummy)
 #define REG_UNSET(e) ((e) == REG_UNSET_VALUE)