gdb/linespec.c: Fix -Wmaybe-uninitialized warning
authorAaron Merey <amerey@redhat.com>
Sat, 7 Jan 2023 00:06:15 +0000 (19:06 -0500)
committerAaron Merey <amerey@redhat.com>
Tue, 10 Jan 2023 00:47:00 +0000 (19:47 -0500)
commit2ff63a29b0b01f949c8365f761e883d29709c44a
treec79de8fa9895a12326d59e2de77e61ae12c1ee82
parent39bc472f4faf71906ece9c38f7401f7b950fc9df
gdb/linespec.c: Fix -Wmaybe-uninitialized warning

Although the bool want_start_sal isn't actually used without being assigned
a value, initialize it to be false in order to prevent the following
-Wmaybe-uninitialized warning:

    linespec.c: In function ‘void minsym_found(linespec_state*, objfile*, minimal_symbol*, std::vector<symtab_and_line>*)’:
    linespec.c:4150:19: warning: ‘want_start_sal’ may be used uninitialized [-Wmaybe-uninitialized]
     4150 |   if (is_function && want_start_sal)
gdb/linespec.c