sim: unify hardware settings
[deliverable/binutils-gdb.git] / gdb / complaints.h
index edb007fb97ccaddaa4551ce2b0c70d0babded017..485dbb15860e98932ea531164f9af4caa49f2a3d 100644 (file)
@@ -1,6 +1,6 @@
 /* Definitions for complaint handling during symbol reading in GDB.
 
-   Copyright (C) 1990-2018 Free Software Foundation, Inc.
+   Copyright (C) 1990-2021 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.031325 seconds and 4 git commands to generate.