analyzer: fix -Wformat warnings on i686
PR analyzer/104247 gcc/analyzer/ChangeLog: * constraint-manager.cc (bounded_ranges_manager::log_stats): Cast to long for format purpose. * region-model-manager.cc (log_uniq_map): Likewise.
This commit is contained in:
parent
2022be54da
commit
3989337e1e
@ -1031,7 +1031,7 @@ void
|
||||
bounded_ranges_manager::log_stats (logger *logger, bool show_objs) const
|
||||
{
|
||||
LOG_SCOPE (logger);
|
||||
logger->log (" # %s: %li", "ranges", m_map.elements ());
|
||||
logger->log (" # %s: %li", "ranges", (long)m_map.elements ());
|
||||
if (!show_objs)
|
||||
return;
|
||||
|
||||
|
@ -1573,7 +1573,7 @@ static void
|
||||
log_uniq_map (logger *logger, bool show_objs, const char *title,
|
||||
const hash_map<K, T*> &uniq_map)
|
||||
{
|
||||
logger->log (" # %s: %li", title, uniq_map.elements ());
|
||||
logger->log (" # %s: %li", title, (long)uniq_map.elements ());
|
||||
if (!show_objs)
|
||||
return;
|
||||
auto_vec<const T *> vec_objs (uniq_map.elements ());
|
||||
@ -1597,7 +1597,7 @@ static void
|
||||
log_uniq_map (logger *logger, bool show_objs, const char *title,
|
||||
const consolidation_map<T> &map)
|
||||
{
|
||||
logger->log (" # %s: %li", title, map.elements ());
|
||||
logger->log (" # %s: %li", title, (long)map.elements ());
|
||||
if (!show_objs)
|
||||
return;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user