Move die_type_hash to dwarf2_per_objfile
[deliverable/binutils-gdb.git] / gdb / complaints.h
index f97ca7b7c30cc7343f67bb03f4424e650031fb11..6ad056d257efa79d3040db600c158debcecdd7ef 100644 (file)
@@ -1,6 +1,6 @@
 /* Definitions for complaint handling during symbol reading in GDB.
 
-   Copyright (C) 1990-2019 Free Software Foundation, Inc.
+   Copyright (C) 1990-2020 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
 extern void complaint_internal (const char *fmt, ...)
   ATTRIBUTE_PRINTF (1, 2);
 
+/* This controls whether complaints are emitted.  */
+
+extern int stop_whining;
+
 /* Register a complaint.  This is a macro around complaint_internal to
    avoid computing complaint's arguments when complaints are disabled.
    Running FMT via gettext [i.e., _(FMT)] can be quite expensive, for
@@ -32,8 +36,6 @@ extern void complaint_internal (const char *fmt, ...)
 #define complaint(FMT, ...)                                    \
   do                                                           \
     {                                                          \
-      extern int stop_whining;                                 \
-                                                               \
       if (stop_whining > 0)                                    \
        complaint_internal (FMT, ##__VA_ARGS__);                \
     }                                                          \
This page took 0.026866 seconds and 4 git commands to generate.