diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2025-12-25 20:13:48 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2025-12-27 21:58:25 +0000 |
| commit | e6546807f4c1a8a6a6fa53fceab7b8c80e3ed802 (patch) | |
| tree | 9be12d3421f042e215cfe8964f7c844176a7c0d2 /sys/dev/smc/if_smc_acpi.c | |
| parent | 086bedb11a853801e82234b8a1a64f0df52d9e52 (diff) | |
Mark `optletter` and `t_op::op_text` as `__non_string`, to avoid
warnings from clang 21 similar to:
bin/sh/options.h:77:36: error: initializer-string for character array is too long, array size is 19 but initializer has size 20 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization]
77 | const char optletter[NSHORTOPTS] = "efIimnsxvVECabupTPh";
| ^~~~~~~~~~~~~~~~~~~~~
bin/test/test.c:153:3: error: initializer-string for character array is too long, array size is 2 but initializer has size 3 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization]
153 | {"==", STREQ},
| ^~~~
MFC after: 3 days
Reviewed by: jilles
Differential Revision: https://reviews.freebsd.org/D54362
Diffstat (limited to 'sys/dev/smc/if_smc_acpi.c')
0 files changed, 0 insertions, 0 deletions
