All of lore.kernel.org
 help / color / mirror / Atom feed
* Build failure with trunk GCC 15 in fs/btrfs/print-tree.c (-Wunterminated-string-initialization)
@ 2024-07-18 21:54 Sam James
  2024-07-18 22:26 ` Alejandro Colomar
  0 siblings, 1 reply; 8+ messages in thread
From: Sam James @ 2024-07-18 21:54 UTC (permalink / raw)
  To: linux-btrfs; +Cc: Alejandro Colomar

GCC 15 introduces a new warning -Wunterminated-string-initialization
which causes, with the kernel's -Werror=..., the following:
```
/var/tmp/portage/sys-kernel/gentoo-kernel-6.6.41/work/linux-6.6/fs/btrfs/print-tree.c:29:49: error: initializer-string for array of ‘char’ is too long [-Werror=unterminated-string-initialization]
   29 |         { BTRFS_BLOCK_GROUP_TREE_OBJECTID,      "BLOCK_GROUP_TREE"      },
      |
      ^~~~~~~~~~~~~~~~~~
```

It was introduced in https://gcc.gnu.org/PR115185. I don't have time
today to check the case to see what the best fix is, but CCing Alex who
wrote the warning implementation in case he has a chance.

thanks,
sam

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-07-19  8:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-18 21:54 Build failure with trunk GCC 15 in fs/btrfs/print-tree.c (-Wunterminated-string-initialization) Sam James
2024-07-18 22:26 ` Alejandro Colomar
2024-07-19  1:19   ` Qu Wenruo
2024-07-19  8:39     ` Alejandro Colomar
2024-07-19  8:47       ` Alejandro Colomar
2024-07-19  8:49         ` Alejandro Colomar
2024-07-19  6:08   ` Sam James
2024-07-19  8:41     ` Alejandro Colomar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.