diff options
-rw-r--r-- | bin/ksh/lex.c | 6 | ||||
-rw-r--r-- | bin/pdksh/lex.c | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/bin/ksh/lex.c b/bin/ksh/lex.c index 4be7b5e5e53..5db0c81accd 100644 --- a/bin/ksh/lex.c +++ b/bin/ksh/lex.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lex.c,v 1.9 1997/09/01 18:30:08 deraadt Exp $ */ +/* $OpenBSD: lex.c,v 1.10 1997/09/12 04:39:32 millert Exp $ */ /* * lexical analysis and source input @@ -1035,7 +1035,9 @@ set_prompt(to, s) struct shf *shf; char *ps1; Area *saved_atemp; - +#ifdef __GNUC__ + (void)&ps1; +#endif ps1 = str_val(global("PS1")); shf = shf_sopen((char *) 0, strlen(ps1) * 2, SHF_WR | SHF_DYNAMIC, (struct shf *) 0); diff --git a/bin/pdksh/lex.c b/bin/pdksh/lex.c index 4be7b5e5e53..5db0c81accd 100644 --- a/bin/pdksh/lex.c +++ b/bin/pdksh/lex.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lex.c,v 1.9 1997/09/01 18:30:08 deraadt Exp $ */ +/* $OpenBSD: lex.c,v 1.10 1997/09/12 04:39:32 millert Exp $ */ /* * lexical analysis and source input @@ -1035,7 +1035,9 @@ set_prompt(to, s) struct shf *shf; char *ps1; Area *saved_atemp; - +#ifdef __GNUC__ + (void)&ps1; +#endif ps1 = str_val(global("PS1")); shf = shf_sopen((char *) 0, strlen(ps1) * 2, SHF_WR | SHF_DYNAMIC, (struct shf *) 0); |