diff options
| author | Paul Eggert | 2025-04-19 19:22:37 -0700 |
|---|---|---|
| committer | Paul Eggert | 2025-04-19 19:31:26 -0700 |
| commit | e2fb12a40ca2b90dfedbfe916ed8a87345ca89f1 (patch) | |
| tree | 888deb6e13ef34c63719b0969d3464066d05e420 /src/json.c | |
| parent | 67ae1790088616777b352acffc63aeeb7ee50cb6 (diff) | |
| download | emacs-e2fb12a40ca2b90dfedbfe916ed8a87345ca89f1.tar.gz emacs-e2fb12a40ca2b90dfedbfe916ed8a87345ca89f1.zip | |
Pacify GCC 15 -Wunterminated-string-initialization
* src/fns.c (hexbuf_digest):
* src/json.c (json_out_string):
Add ATTRIBUTE_NONSTRING to character arrays that are not strings.
Diffstat (limited to 'src/json.c')
| -rw-r--r-- | src/json.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/json.c b/src/json.c index beac242b709..44eae653eb5 100644 --- a/src/json.c +++ b/src/json.c | |||
| @@ -323,7 +323,7 @@ json_out_string (json_out_t *jo, Lisp_Object str, int skip) | |||
| 323 | { | 323 | { |
| 324 | /* FIXME: this code is slow, make faster! */ | 324 | /* FIXME: this code is slow, make faster! */ |
| 325 | 325 | ||
| 326 | static const char hexchar[16] = "0123456789ABCDEF"; | 326 | static const char hexchar[16] ATTRIBUTE_NONSTRING = "0123456789ABCDEF"; |
| 327 | ptrdiff_t len = SBYTES (str); | 327 | ptrdiff_t len = SBYTES (str); |
| 328 | json_make_room (jo, len + 2); | 328 | json_make_room (jo, len + 2); |
| 329 | json_out_byte (jo, '"'); | 329 | json_out_byte (jo, '"'); |