mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-03 19:36:46 +08:00
Fix warning in symtab.c
The compiler gives this warning when building symtab.c: ../../binutils-gdb/gdb/symtab.c:4247:28: warning: 'to_match' may be used uninitialized in this function [-Wmaybe-uninitialized] This patch fixes the warning by adding a gdb_assert_not_reached.
This commit is contained in:
@ -4242,6 +4242,8 @@ info_sources_filter::matches (const char *fullname) const
|
|||||||
case match_on::FULLNAME:
|
case match_on::FULLNAME:
|
||||||
to_match = fullname;
|
to_match = fullname;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
gdb_assert_not_reached ("bad m_match_type");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_c_regexp->exec (to_match, 0, NULL, 0) != 0)
|
if (m_c_regexp->exec (to_match, 0, NULL, 0) != 0)
|
||||||
|
Reference in New Issue
Block a user