From 454504d0cc47e25347cf7d3fc3bc9e2358bf151c Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Tue, 30 Jan 2024 16:10:31 +0100 Subject: [PATCH] Poison usleep() It has been deprecated in POSIX.1-2001 and removed in POSIX.1-2008. --- src/common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common.h b/src/common.h index 2b609c4..974e0d8 100644 --- a/src/common.h +++ b/src/common.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2021-2023 Barcelona Supercomputing Center (BSC) +/* Copyright (c) 2021-2024 Barcelona Supercomputing Center (BSC) * SPDX-License-Identifier: MIT */ #ifndef COMMON_H @@ -39,6 +39,7 @@ void vdie(const char *prefix, const char *func, const char *errstr, ...); /* Poison assert */ #pragma GCC poison assert +#pragma GCC poison usleep #define USE_RET __attribute__((warn_unused_result))