Skip to content

Commit

Permalink
Remove braces around string initializers
Browse files Browse the repository at this point in the history
While MSVC is apparently fine with that, Clang complains about it (`-Wbraced-scalar-init`).
  • Loading branch information
cmb69 committed Jan 12, 2025
1 parent e6f42c1 commit 881ab77
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions win32/sendmail.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 881ab77

Please sign in to comment.