Some __nonstring__ Turbulence
Published on: 2025-04-28 09:46:45
Some __nonstring__ turbulence [LWN subscriber-only content]
Welcome to LWN.net The following subscription-only content has been made available to you by an LWN subscriber. Thousands of subscribers depend on LWN for the best news from the Linux and free software communities. If you enjoy this article, please consider subscribing to LWN. Thank you for visiting LWN.net!
-Wunterminated-string-initialization
New compiler releases often bring with them new warnings; those warnings are usually welcome, since they help developers find problems before they turn into nasty bugs. Adapting to new warnings can also create disruption in the development process, though, especially when an important developer upgrades to a new compiler at an unfortunate time. This is just the scenario that played out with the 6.15-rc3 kernel release and the implementation ofin GCC 15.
Consider a C declaration like:
char foo[8] = "bar";
The array will be initialized with the given string, including the normal tra
... Read full article.