diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-05-02 02:36:23 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-05-02 02:36:23 +0000 |
commit | c988b02f15138c64b03c386eaabeb55809074bb4 (patch) | |
tree | 3510065459318b2822b9d1776f4d83519935455c /gnu | |
parent | 5d77bcd894258ac96594b1d1f83cd5359204ac77 (diff) |
put back warning for signed char array subscripts
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/gcc/c-decl.c | 1 | ||||
-rw-r--r-- | gnu/usr.bin/gcc/gcc.1 | 4 |
2 files changed, 3 insertions, 2 deletions
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 |