From 881ab77992463f47831defed64dddfc7b784da29 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Sun, 12 Jan 2025 18:55:14 +0100 Subject: [PATCH] Remove braces around string initializers While MSVC is apparently fine with that, Clang complains about it (`-Wbraced-scalar-init`). --- win32/sendmail.c | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/win32/sendmail.c b/win32/sendmail.c index f650b2ae4a48c..c5215bf35c6f8 100644 --- a/win32/sendmail.c +++ b/win32/sendmail.c @@ -65,28 +65,28 @@ char *php_mailer = "PHP 7 WIN32"; /* Error messages */ static char *ErrorMessages[] = { - {"Success"}, /* 0 */ - {"Bad arguments from form"}, /* 1 */ - {"Unable to open temporary mailfile for read"}, - {"Failed to Start Sockets"}, - {"Failed to Resolve Host"}, - {"Failed to obtain socket handle"}, /* 5 */ - {"Failed to connect to mailserver, verify your \"SMTP\" setting in php.ini"}, - {"Failed to Send"}, - {"Failed to Receive"}, - {"Server Error"}, - {"Failed to resolve the host IP name"}, /* 10 */ - {"Out of memory"}, - {"Unknown error"}, - {"Bad Message Contents"}, - {"Bad Message Subject"}, - {"Bad Message destination"}, /* 15 */ - {"Bad Message Return Path"}, - {"Bad Mail Host"}, - {"Bad Message File"}, - {"\"sendmail_from\" not set in php.ini or custom \"From:\" header missing"}, - {"Mailserver rejected our \"sendmail_from\" setting"}, /* 20 */ - {"Error while trimming mail header with PCRE, please file a bug report at https://github.com/php/php-src/issues"} /* 21 */ + "Success", /* 0 */ + "Bad arguments from form", /* 1 */ + "Unable to open temporary mailfile for read", + "Failed to Start Sockets", + "Failed to Resolve Host", + "Failed to obtain socket handle", /* 5 */ + "Failed to connect to mailserver, verify your \"SMTP\" setting in php.ini", + "Failed to Send", + "Failed to Receive", + "Server Error", + "Failed to resolve the host IP name", /* 10 */ + "Out of memory", + "Unknown error", + "Bad Message Contents", + "Bad Message Subject", + "Bad Message destination", /* 15 */ + "Bad Message Return Path", + "Bad Mail Host", + "Bad Message File", + "\"sendmail_from\" not set in php.ini or custom \"From:\" header missing", + "Mailserver rejected our \"sendmail_from\" setting", /* 20 */ + "Error while trimming mail header with PCRE, please file a bug report at https://github.com/php/php-src/issues" /* 21 */ }; /* This pattern converts all single occurrences of \n (Unix)