mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Apply r228478 (CTASSERT => _Static_assert()) to stand bootstrap.h
Reported by: GCC (it doesn't like the unused array) Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
24f2ef9bb9
commit
70be5ca734
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=331331
|
@ -330,10 +330,8 @@ void dev_cleanup(void);
|
|||
|
||||
time_t time(time_t *tloc);
|
||||
|
||||
#ifndef CTASSERT /* Allow lint to override */
|
||||
#define CTASSERT(x) _CTASSERT(x, __LINE__)
|
||||
#define _CTASSERT(x, y) __CTASSERT(x, y)
|
||||
#define __CTASSERT(x, y) typedef char __assert ## y[(x) ? 1 : -1]
|
||||
#ifndef CTASSERT
|
||||
#define CTASSERT(x) _Static_assert(x, "compile-time assertion failed")
|
||||
#endif
|
||||
|
||||
#endif /* !_BOOTSTRAP_H_ */
|
||||
|
|
Loading…
Reference in a new issue