diff options
| author | jvoisin | 2023-09-21 15:50:32 +0200 |
|---|---|---|
| committer | jvoisin | 2023-09-21 15:50:32 +0200 |
| commit | 8c2352b985b1bf69efb965ba15f5e300eb7e8e12 (patch) | |
| tree | 9901e915156ca32c0b9f006f3139ba34958f68ef /include/poll.h | |
| parent | 46add4c4aecbbb8edb4b70ac5ed3a8c144f497ee (diff) | |
Properly enable diagnose_as_builtin attribute
Diffstat (limited to 'include/poll.h')
| -rw-r--r-- | include/poll.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/poll.h b/include/poll.h index 10df4b3..8e8de6c 100644 --- a/include/poll.h +++ b/include/poll.h | |||
| @@ -31,7 +31,6 @@ extern "C" { | |||
| 31 | 31 | ||
| 32 | #undef poll | 32 | #undef poll |
| 33 | 33 | ||
| 34 | __diagnose_as_builtin(__builtin_pollfd, 1, 2, 3) | ||
| 35 | _FORTIFY_FN(poll) int poll(struct pollfd * _FORTIFY_POS0 __f, nfds_t __n, int __s) | 34 | _FORTIFY_FN(poll) int poll(struct pollfd * _FORTIFY_POS0 __f, nfds_t __n, int __s) |
| 36 | { | 35 | { |
| 37 | size_t __b = __bos(__f, 0); | 36 | size_t __b = __bos(__f, 0); |
| @@ -43,7 +42,6 @@ _FORTIFY_FN(poll) int poll(struct pollfd * _FORTIFY_POS0 __f, nfds_t __n, int __ | |||
| 43 | 42 | ||
| 44 | #if defined(_GNU_SOURCE) && !_REDIR_TIME64 | 43 | #if defined(_GNU_SOURCE) && !_REDIR_TIME64 |
| 45 | #undef ppoll | 44 | #undef ppoll |
| 46 | __diagnose_as_builtin(__builtin_ppollfd, 1, 2, 3, 4) | ||
| 47 | _FORTIFY_FN(ppoll) int ppoll(struct pollfd * _FORTIFY_POS0 __f, nfds_t __n, | 45 | _FORTIFY_FN(ppoll) int ppoll(struct pollfd * _FORTIFY_POS0 __f, nfds_t __n, |
| 48 | const struct timespec *__s, const sigset_t *__m) | 46 | const struct timespec *__s, const sigset_t *__m) |
| 49 | { | 47 | { |
