MarcoFalke
fa67b6752d
refactor: Use array initialization for unterminated strings
...
The previous code is correct and harmless to initialize an array with a
non-terminated character sequence using a string literal.
However, it requires exactly specifying the array size, which can be
cumbersome.
Also, GCC-15 may issue the -Wunterminated-string-initialization warning.
[1]
Fix both issues by using array initialization. This refactoring commit
does not change behavior.
[1] Example warning:
src/modules/schnorrsig/main_impl.h:48:46: error: initializer-string for array of 'unsigned char' is too long [-Werror=unterminated-string-initialization]
48 | static const unsigned char bip340_algo[13] = "BIP0340/nonce";
| ^~~~~~~~~~~~~~~
2024-08-15 17:58:14 +02:00
..
2023-11-13 14:49:35 +00:00
2024-08-15 17:58:14 +02:00
2023-04-09 06:17:16 +02:00
2024-01-08 16:10:55 +01:00
2023-08-01 02:40:21 +02:00
2023-11-24 02:33:40 +01:00
2023-06-20 11:31:58 -04:00
2023-04-21 11:18:36 +02:00
2024-02-23 17:30:39 +00:00
2023-09-07 20:47:57 +01:00
2023-08-15 19:13:09 +02:00
2023-12-07 09:26:38 +01:00
2021-08-20 11:11:26 -04:00
2023-05-30 12:10:41 +02:00
2021-08-20 11:11:26 -04:00
2021-12-18 16:11:56 -05:00
2021-12-18 16:11:56 -05:00
2024-04-19 11:43:46 -04:00
2023-05-10 09:06:02 -04:00
2024-04-19 11:43:46 -04:00
2024-04-19 11:43:46 -04:00
2024-04-19 11:43:46 -04:00
2024-04-19 11:43:46 -04:00
2024-04-19 11:43:46 -04:00
2023-07-03 17:05:55 +02:00
2023-11-24 08:11:08 +01:00
2023-12-01 00:54:41 +01:00
2023-05-11 06:18:37 -04:00
2023-12-01 00:54:41 +01:00
2023-05-11 06:18:37 -04:00
2023-12-01 00:54:58 +01:00
2024-02-27 16:32:49 +01:00
2023-12-01 16:06:29 -05:00
2023-12-01 16:06:29 -05:00
2023-07-24 13:14:23 +01:00
2022-03-25 11:32:14 +01:00
2024-04-25 20:23:31 +00:00
2024-04-25 20:23:31 +00:00
2022-11-07 16:38:30 -05:00
2023-03-09 15:29:56 +00:00
2022-11-07 16:37:24 -05:00
2023-06-04 18:03:36 +01:00
2022-11-07 16:37:24 -05:00
2023-02-27 15:38:05 -05:00
2023-12-01 00:54:41 +01:00
2023-02-28 15:54:00 -05:00
2023-12-01 00:54:41 +01:00
2023-02-28 15:54:00 -05:00
2024-04-19 11:43:46 -04:00
2023-06-24 20:18:45 +01:00
2024-04-19 11:43:46 -04:00
2024-04-19 11:43:22 -04:00
2023-06-06 09:07:36 +01:00
2023-06-06 09:07:36 +01:00
2024-04-19 11:43:46 -04:00
2020-12-18 00:24:22 +02:00
2024-04-19 11:43:46 -04:00
2020-12-18 00:24:22 +02:00
2024-01-03 20:03:07 +08:00
2024-04-19 11:43:46 -04:00
2023-11-04 15:54:08 -04:00
2024-04-19 11:43:46 -04:00
2022-06-29 20:24:11 +05:30
2023-05-12 15:05:57 +00:00
2024-06-24 14:24:48 -07:00
2022-12-05 11:26:44 +01:00
2024-08-15 17:58:14 +02:00
2024-05-27 03:29:36 +02:00
2024-05-27 03:29:36 +02:00
2024-07-24 06:57:38 +00:00
2024-07-24 06:57:38 +00:00
2024-04-19 11:43:46 -04:00