[php-src] PR #17684: Don't forward declare static functions in sendmail.h
| From: | cmb69 | Date: | Mon, 03 Feb 2025 15:15:28 +0000 |
| Subject: | [php-src] PR #17684: Don't forward declare static functions in sendmail.h | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-30645@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/17684
Author: cmb69
sendmail.h is not only included by sendmail.c, but also by php_win32_globals.h, because that header
uses some of the defined macros. However, the forward declarations of the static functions are not
needed anywhere else than in sendmail.c, and Clang warns about the unused functions elsewhere
(
-Wunused-function). Thus we move the forward declarations to sendmail.c.