diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2005-03-03 00:27:03 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2005-03-03 00:27:03 +0000 |
commit | cea914801febc623f9a6ed0e9559b6793464161c (patch) | |
tree | 32eaf5a5a3af63ad36c4a96fead1ee4594b2c676 /gcc/java/jcf-io.c | |
parent | 79a8dc5b6ae436bffab080c09adf2c051b05ddc9 (diff) | |
download | gcc-cea914801febc623f9a6ed0e9559b6793464161c.zip gcc-cea914801febc623f9a6ed0e9559b6793464161c.tar.gz gcc-cea914801febc623f9a6ed0e9559b6793464161c.tar.bz2 |
jcf-io.c (caching_stat): Use __extension__ to avoid pedantic warning.
* jcf-io.c (caching_stat): Use __extension__ to avoid pedantic
warning.
* Make-lang.in: Don't elide warnings in jcf-io.c.
From-SVN: r95819
Diffstat (limited to 'gcc/java/jcf-io.c')
-rw-r--r-- | gcc/java/jcf-io.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/java/jcf-io.c b/gcc/java/jcf-io.c index e0ab03e..6588ef2 100644 --- a/gcc/java/jcf-io.c +++ b/gcc/java/jcf-io.c @@ -376,11 +376,11 @@ caching_stat (char *filename, struct stat *buf) particular, the type of the function pointer passed as the third argument sometimes takes a "const struct dirent *" parameter, and sometimes just a "struct dirent *". We cast - to (void *) so that either way it is quietly accepted. - FIXME: scandir is not in POSIX. */ - dent->num_files = scandir (filename, &dent->files, - (void *) java_or_class_file, - alphasort); + to (void *) and use __extension__ so that either way it is + quietly accepted. FIXME: scandir is not in POSIX. */ + dent->num_files = __extension__ scandir (filename, &dent->files, + (void *) java_or_class_file, + alphasort); *slot = dent; } else |