diff options
Diffstat (limited to 'ld/ldmisc.c')
-rw-r--r-- | ld/ldmisc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ld/ldmisc.c b/ld/ldmisc.c index 3a02f75..033e9c2 100644 --- a/ld/ldmisc.c +++ b/ld/ldmisc.c @@ -95,6 +95,9 @@ vfinfo (FILE *fp, const char *fmt, va_list ap, bool is_warning) } type; } args[9]; + if (is_warning && config.no_warnings) + return; + for (arg_no = 0; arg_no < sizeof (args) / sizeof (args[0]); arg_no++) args[arg_no].type = Bad; |