From c988b02f15138c64b03c386eaabeb55809074bb4 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 2 May 1998 02:36:23 +0000 Subject: put back warning for signed char array subscripts --- gnu/usr.bin/gcc/c-decl.c | 1 + gnu/usr.bin/gcc/gcc.1 | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'gnu') diff --git a/gnu/usr.bin/gcc/c-decl.c b/gnu/usr.bin/gcc/c-decl.c index 5d38c1abffe..9691e7c423c 100644 --- a/gnu/usr.bin/gcc/c-decl.c +++ b/gnu/usr.bin/gcc/c-decl.c @@ -776,6 +776,7 @@ c_decode_option (p) warn_unused = 1; warn_switch = 1; warn_format = 1; + warn_char_subscripts = 1; warn_parentheses = 1; warn_missing_braces = 1; /* We set this to 2 here, but 1 in -Wmain, so -ffreestanding can turn diff --git a/gnu/usr.bin/gcc/gcc.1 b/gnu/usr.bin/gcc/gcc.1 index d2b5b21576c..71327bdb125 100644 --- a/gnu/usr.bin/gcc/gcc.1 +++ b/gnu/usr.bin/gcc/gcc.1 @@ -20,7 +20,7 @@ .if n .sp .if t .sp 0.4 .. -.Id $OpenBSD: gcc.1,v 1.5 1998/03/08 18:27:38 millert Exp $ +.Id $OpenBSD: gcc.1,v 1.6 1998/05/02 02:36:22 millert Exp $ .TH GCC 1 "\*(Dt" "GNU Tools" "GNU Tools" .SH NAME gcc, g++ \- GNU project C and C++ Compiler (v2.7) @@ -182,7 +182,7 @@ in the following sections. \-Waggregate\-return \-Wcast\-align \-Wcast\-qual -\-Wchar\-subscript +\-Wchar\-subscripts \-Wcomment \-Wconversion \-Wenum\-clash -- cgit v1.2.3