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
This commit is contained in:
parent
f08613087a
commit
5f9c9ae2f2
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user