X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=include%2Fdiagnostics.h;h=82d871b5b2ac83ec10df56212f638bdb1a442aaa;hb=ebe2334ee6cb065d2a86688bc9558d62320dd459;hp=79e6779edf77cfdb6d2a1a399227b27093ec49ea;hpb=af39b1c216ffb11e6ca8e8607b00749e0fc1ab41;p=deliverable%2Fbinutils-gdb.git diff --git a/include/diagnostics.h b/include/diagnostics.h index 79e6779edf..82d871b5b2 100644 --- a/include/diagnostics.h +++ b/include/diagnostics.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2017-2018 Free Software Foundation, Inc. +/* Copyright (C) 2017-2020 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -53,8 +53,6 @@ DIAGNOSTIC_IGNORE ("-Wdeprecated-declarations") # define DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER \ DIAGNOSTIC_IGNORE ("-Wdeprecated-register") -# define DIAGNOSTIC_IGNORE_UNUSED_FUNCTION \ - DIAGNOSTIC_IGNORE ("-Wunused-function") # if __has_warning ("-Wenum-compare-switch") # define DIAGNOSTIC_IGNORE_SWITCH_DIFFERENT_ENUM_TYPES \ DIAGNOSTIC_IGNORE ("-Wenum-compare-switch") @@ -65,9 +63,6 @@ #elif defined (__GNUC__) /* GCC */ -# define DIAGNOSTIC_IGNORE_UNUSED_FUNCTION \ - DIAGNOSTIC_IGNORE ("-Wunused-function") - # define DIAGNOSTIC_IGNORE_STRINGOP_TRUNCATION \ DIAGNOSTIC_IGNORE ("-Wstringop-truncation") @@ -88,10 +83,6 @@ # define DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER #endif -#ifndef DIAGNOSTIC_IGNORE_UNUSED_FUNCTION -# define DIAGNOSTIC_IGNORE_UNUSED_FUNCTION -#endif - #ifndef DIAGNOSTIC_IGNORE_SWITCH_DIFFERENT_ENUM_TYPES # define DIAGNOSTIC_IGNORE_SWITCH_DIFFERENT_ENUM_TYPES #endif