diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2002-06-20 17:38:23 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2002-06-20 17:38:23 +0000 |
commit | 62c71f4bc29a578f50b161f20fb5f56826f4f019 (patch) | |
tree | 89ff6f0d58f92f38de7a3e21d97dfec40754eca5 /gcc/c-decl.c | |
parent | ef9772c835143b69b86dffcc57208de414259c83 (diff) | |
download | gcc-62c71f4bc29a578f50b161f20fb5f56826f4f019.zip gcc-62c71f4bc29a578f50b161f20fb5f56826f4f019.tar.gz gcc-62c71f4bc29a578f50b161f20fb5f56826f4f019.tar.bz2 |
utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit array size calculation.
ada:
* utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
array size calculation.
gcc:
* c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
array size calculation.
* gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
Likewise.
cp:
* spew.c (remove_last_token): Use ARRAY_SIZE in lieu of explicit
array size calculation.
From-SVN: r54842
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 96233e3..23134e3 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -697,7 +697,7 @@ c_decode_option (argc, argv) else { size_t i; - for (i = 0; i < sizeof (warn_options) / sizeof (warn_options[0]); i++) + for (i = 0; i < ARRAY_SIZE (warn_options); i++) if (strncmp (p, "-W", 2) == 0 && warn_options[i].flag && (strcmp (p+2, warn_options[i].option) == 0 |