Exclude unused functions from compilation units (GH-17686)

This avoids Clang complaining with `-Wunused-function`.

We also introduce the macro `PRELOAD_SUPPORT` for clarification.
This commit is contained in:
Christoph M. Becker 2025-02-10 18:00:19 +01:00 committed by GitHub
parent 6deaaf609f
commit 650086f3e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 21 additions and 1 deletions

View file

@ -221,6 +221,7 @@ static void print_extensions(void) /* {{{ */
#define STDERR_FILENO 2
#endif
#ifdef PHP_WRITE_STDOUT
static inline bool sapi_cli_select(php_socket_t fd)
{
fd_set wfd;
@ -238,6 +239,7 @@ static inline bool sapi_cli_select(php_socket_t fd)
return ret != -1;
}
#endif
PHP_CLI_API ssize_t sapi_cli_single_write(const char *str, size_t str_length) /* {{{ */
{