Add a -w option to the linker to suppress warning and error messages.
[binutils-gdb.git] / ld / ld.h
diff --git a/ld/ld.h b/ld/ld.h
index 35fafebfaedcb2245f64d8c5fef2fbbf3bf66ea9..2ac9f469d04a336415571dc99d1983386e806e26 100644 (file)
--- a/ld/ld.h
+++ b/ld/ld.h
@@ -1,5 +1,5 @@
 /* ld.h -- general linker header file
-   Copyright (C) 1991-2021 Free Software Foundation, Inc.
+   Copyright (C) 1991-2022 Free Software Foundation, Inc.
 
    This file is part of the GNU Binutils.
 
@@ -252,9 +252,12 @@ typedef struct
      changes due to the alignment of an input section.  */
   bool warn_section_align;
 
-  /* If TRUE, warning messages are fatal */
+  /* If TRUE, warning messages are fatal */
   bool fatal_warnings;
 
+  /* If TRUE, warning and error messages are ignored.  */
+  bool no_warnings;
+
   sort_order sort_common;
 
   bool text_read_only;