mirror_zfs/module/zcommon
Tony Hutter 81c62bc9e5 GCC 15: Fix unterminated-string-initialization (#17244)
Fix build errors on Fedora 42 like:

  module/zcommon/zfs_valstr.c:193:16: error: initializer-string for
  array of 'char' truncates NUL terminator but destination lacks
  'nonstring' attribute (3 chars into 2 available)

The arrays in zpool_vdev_os.c and zfs_valstr.c don't need to be
NULL terminated, but we do so to make GCC happy.

Closes: #17242

Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
2025-05-27 15:03:11 -07:00
..
cityhash.c Compile cityhash code into libzfs 2020-03-27 09:11:22 -07:00
simd_stat.c Add missing guard defines for simd_stat 2024-11-05 15:43:52 -08:00
zfeature_common.c Create zap for root vdev 2023-04-20 10:07:56 -07:00
zfs_comutil.c nvpair: Constify string functions 2023-03-14 15:25:50 -07:00
zfs_deleg.c nvpair: Constify string functions 2023-03-14 15:25:50 -07:00
zfs_fletcher_aarch64_neon.c Drop lying to the compiler in the fletcher4 code 2023-03-24 10:29:19 -07:00
zfs_fletcher_avx512.c Drop lying to the compiler in the fletcher4 code 2023-03-24 10:29:19 -07:00
zfs_fletcher_intel.c Drop lying to the compiler in the fletcher4 code 2023-03-24 10:29:19 -07:00
zfs_fletcher_sse.c Drop lying to the compiler in the fletcher4 code 2023-03-24 10:29:19 -07:00
zfs_fletcher_superscalar4.c Drop lying to the compiler in the fletcher4 code 2023-03-24 10:29:19 -07:00
zfs_fletcher_superscalar.c Drop lying to the compiler in the fletcher4 code 2023-03-24 10:29:19 -07:00
zfs_fletcher.c Replace P2ALIGN with P2ALIGN_TYPED and delete P2ALIGN. 2024-05-13 10:27:38 -05:00
zfs_namecheck.c Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zfs_prop.c Add SIMD metadata in /proc on Linux follow up 2024-11-15 10:15:00 -08:00
zfs_valstr.c GCC 15: Fix unterminated-string-initialization (#17244) 2025-05-27 15:03:11 -07:00
zpool_prop.c Avoid computing strlen() inside loops 2024-11-05 15:43:52 -08:00
zprop_common.c Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00