Fix GH-17687: initializer-string for array of ... warnings

Starting with gcc 15 the warning `-Wunterminated-string-initialization`
is enabled by default. We make now use of the `nonstring` attribute to
silence the warning for the cases where this is intended.

Closes GH-18603.
This commit is contained in:
Niels Dossche 2025-05-19 20:06:29 +02:00
parent 400b7b8c74
commit ea69276fd5
No known key found for this signature in database
GPG key ID: B8A8AD166DF0E2E5
6 changed files with 11 additions and 5 deletions

View file

@ -25,7 +25,7 @@
#include "php_pdo_driver.h"
struct pdo_sqlstate_info {
const char state[5];
const char state[5] ZEND_NONSTRING;
const char *desc;
};