mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
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:
parent
6deaaf609f
commit
650086f3e6
4 changed files with 21 additions and 1 deletions
|
@ -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) /* {{{ */
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue