From 8c2352b985b1bf69efb965ba15f5e300eb7e8e12 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 21 Sep 2023 15:50:32 +0200 Subject: Properly enable diagnose_as_builtin attribute --- include/poll.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'include/poll.h') 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" { #undef poll -__diagnose_as_builtin(__builtin_pollfd, 1, 2, 3) _FORTIFY_FN(poll) int poll(struct pollfd * _FORTIFY_POS0 __f, nfds_t __n, int __s) { size_t __b = __bos(__f, 0); @@ -43,7 +42,6 @@ _FORTIFY_FN(poll) int poll(struct pollfd * _FORTIFY_POS0 __f, nfds_t __n, int __ #if defined(_GNU_SOURCE) && !_REDIR_TIME64 #undef ppoll -__diagnose_as_builtin(__builtin_ppollfd, 1, 2, 3, 4) _FORTIFY_FN(ppoll) int ppoll(struct pollfd * _FORTIFY_POS0 __f, nfds_t __n, const struct timespec *__s, const sigset_t *__m) { -- cgit v1.3