git: 5f9c9ae2f22b - main - Remove checks for __CC_SUPPORTS_WARNING assuming it is always true.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Tue, 12 Apr 2022 17:10:39 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=5f9c9ae2f22b509a61aaab99aa7bfe28f4dfb914

commit 5f9c9ae2f22b509a61aaab99aa7bfe28f4dfb914
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-12 17:06:13 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-12 17:06:13 +0000

    Remove checks for __CC_SUPPORTS_WARNING assuming it is always true.
    
    All supported compilers (modern versions of GCC and clang) support
    this.
    
    PR:             263102 (exp-run)
    Reviewed by:    brooks, imp
    Differential Revision:  https://reviews.freebsd.org/D34803
---
 sys/amd64/include/limits.h   | 4 ----
 sys/arm/include/limits.h     | 4 ----
 sys/i386/include/limits.h    | 4 ----
 sys/i386/include/speaker.h   | 4 ----
 sys/powerpc/include/limits.h | 4 ----
 sys/sys/syslimits.h          | 5 -----
 6 files changed, 25 deletions(-)

diff --git a/sys/amd64/include/limits.h b/sys/amd64/include/limits.h
index 5a7b831b3089..f2a4bf75fe2c 100644
--- a/sys/amd64/include/limits.h
+++ b/sys/amd64/include/limits.h
@@ -35,11 +35,7 @@
 #ifndef _MACHINE_LIMITS_H_
 #define	_MACHINE_LIMITS_H_
 
-#include <sys/cdefs.h>
-
-#ifdef __CC_SUPPORTS_WARNING
 #warning "machine/limits.h is deprecated.  Include sys/limits.h instead."
-#endif
 
 #include <sys/limits.h>
 
diff --git a/sys/arm/include/limits.h b/sys/arm/include/limits.h
index 5a7b831b3089..f2a4bf75fe2c 100644
--- a/sys/arm/include/limits.h
+++ b/sys/arm/include/limits.h
@@ -35,11 +35,7 @@
 #ifndef _MACHINE_LIMITS_H_
 #define	_MACHINE_LIMITS_H_
 
-#include <sys/cdefs.h>
-
-#ifdef __CC_SUPPORTS_WARNING
 #warning "machine/limits.h is deprecated.  Include sys/limits.h instead."
-#endif
 
 #include <sys/limits.h>
 
diff --git a/sys/i386/include/limits.h b/sys/i386/include/limits.h
index 5a7b831b3089..f2a4bf75fe2c 100644
--- a/sys/i386/include/limits.h
+++ b/sys/i386/include/limits.h
@@ -35,11 +35,7 @@
 #ifndef _MACHINE_LIMITS_H_
 #define	_MACHINE_LIMITS_H_
 
-#include <sys/cdefs.h>
-
-#ifdef __CC_SUPPORTS_WARNING
 #warning "machine/limits.h is deprecated.  Include sys/limits.h instead."
-#endif
 
 #include <sys/limits.h>
 
diff --git a/sys/i386/include/speaker.h b/sys/i386/include/speaker.h
index 2950b4760feb..574470a579d6 100644
--- a/sys/i386/include/speaker.h
+++ b/sys/i386/include/speaker.h
@@ -5,11 +5,7 @@
 #ifndef	_MACHINE_SPEAKER_H_
 #define	_MACHINE_SPEAKER_H_
 
-#include <sys/cdefs.h>
-
-#ifdef __CC_SUPPORTS_WARNING
 #warning "machine/speaker.h is deprecated.  Include dev/speaker/speaker.h instead."
-#endif
 
 #include <dev/speaker/speaker.h>
 
diff --git a/sys/powerpc/include/limits.h b/sys/powerpc/include/limits.h
index 5a7b831b3089..f2a4bf75fe2c 100644
--- a/sys/powerpc/include/limits.h
+++ b/sys/powerpc/include/limits.h
@@ -35,11 +35,7 @@
 #ifndef _MACHINE_LIMITS_H_
 #define	_MACHINE_LIMITS_H_
 
-#include <sys/cdefs.h>
-
-#ifdef __CC_SUPPORTS_WARNING
 #warning "machine/limits.h is deprecated.  Include sys/limits.h instead."
-#endif
 
 #include <sys/limits.h>
 
diff --git a/sys/sys/syslimits.h b/sys/sys/syslimits.h
index b330ae7f0e27..08aae5aaae71 100644
--- a/sys/sys/syslimits.h
+++ b/sys/sys/syslimits.h
@@ -36,13 +36,8 @@
 #define _SYS_SYSLIMITS_H_
 
 #if !defined(_STANDALONE) && !defined(_KERNEL) && !defined(_LIMITS_H_) && !defined(_SYS_PARAM_H_)
-#ifndef _SYS_CDEFS_H_
-#error this file needs sys/cdefs.h as a prerequisite
-#endif
-#ifdef __CC_SUPPORTS_WARNING
 #warning "No user-serviceable parts inside."
 #endif
-#endif
 
 /*
  * Do not add any new variables here.  (See the comment at the end of