diff options
author | Martin Liska <mliska@suse.cz> | 2022-01-27 12:41:16 +0100 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2022-01-27 12:41:16 +0100 |
commit | 3989337e1e1e334bb6d6db5d441c751d0b9ae2e1 (patch) | |
tree | 9f67174a78d1ddc8147d9c6d431ec2e5a2b192f5 /gcc | |
parent | 2022be54daf638885e1e685afd36619cb4b01a93 (diff) | |
download | gcc-3989337e1e1e334bb6d6db5d441c751d0b9ae2e1.zip gcc-3989337e1e1e334bb6d6db5d441c751d0b9ae2e1.tar.gz gcc-3989337e1e1e334bb6d6db5d441c751d0b9ae2e1.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/analyzer/constraint-manager.cc | 2 | ||||
-rw-r--r-- | gcc/analyzer/region-model-manager.cc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gcc/analyzer/constraint-manager.cc b/gcc/analyzer/constraint-manager.cc index 88b0988..ac1e4fe 100644 --- a/gcc/analyzer/constraint-manager.cc +++ b/gcc/analyzer/constraint-manager.cc @@ -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; diff --git a/gcc/analyzer/region-model-manager.cc b/gcc/analyzer/region-model-manager.cc index e765e7f..ba835cb 100644 --- a/gcc/analyzer/region-model-manager.cc +++ b/gcc/analyzer/region-model-manager.cc @@ -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; |