Tony wrote:
> In the Huge, Big and Normal builds I get -Wmaybe-uninitialized
> warnings for line_attr in drawline.c but they are different in each
> case; I don't understand getting a -Wmaybe-uninitialized for a
> variable which was given an initial value on the line declaring it.
> This is gcc 12.1.1 20220721:
line_attr itself is initialized, but it gets assigned from
line_attr_save, which the compiler thinks might be uninitialized.
The compiler could be clearer about why it came to this warning.
Otherwise it requires quite a bit of guessing.
--
hundred-and-one symptoms of being an internet addict:
264. You turn to the teletext page "surfing report" and are surprised that it
is about sizes of waves and a weather forecast for seaside resorts.
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///