Poison usleep()

It has been deprecated in POSIX.1-2001 and removed in POSIX.1-2008.
This commit is contained in:
Rodrigo Arias 2024-01-30 16:10:31 +01:00
parent 3e7006cec7
commit 454504d0cc

View File

@ -1,4 +1,4 @@
/* Copyright (c) 2021-2023 Barcelona Supercomputing Center (BSC) /* Copyright (c) 2021-2024 Barcelona Supercomputing Center (BSC)
* SPDX-License-Identifier: MIT */ * SPDX-License-Identifier: MIT */
#ifndef COMMON_H #ifndef COMMON_H
@ -39,6 +39,7 @@ void vdie(const char *prefix, const char *func, const char *errstr, ...);
/* Poison assert */ /* Poison assert */
#pragma GCC poison assert #pragma GCC poison assert
#pragma GCC poison usleep
#define USE_RET __attribute__((warn_unused_result)) #define USE_RET __attribute__((warn_unused_result))