changeset 365:dca9a1bd7ae4

[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 d9031d3b5944
children 168ae913a7e2
files regex.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/regex.c
+++ b/regex.c
@@ -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)