diff options
Diffstat (limited to 'gcc/c-family/c-opts.c')
-rw-r--r-- | gcc/c-family/c-opts.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/c-family/c-opts.c b/gcc/c-family/c-opts.c index 32120e636c2..cead15e7a63 100644 --- a/gcc/c-family/c-opts.c +++ b/gcc/c-family/c-opts.c @@ -989,6 +989,9 @@ c_common_post_options (const char **pfilename) flag_extern_tls_init = 1; } + if (warn_return_type == -1) + warn_return_type = c_dialect_cxx (); + if (num_in_fnames > 1) error ("too many filenames given. Type %s --help for usage", progname); |