mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
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:
parent
400b7b8c74
commit
ea69276fd5
6 changed files with 11 additions and 5 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue