public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Martin Liska <marxin@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-6892] analyzer: fix -Wformat warnings on i686 Date: Thu, 27 Jan 2022 11:46:22 +0000 (GMT) [thread overview] Message-ID: <20220127114622.2DE9B3870906@sourceware.org> (raw) https://gcc.gnu.org/g:3989337e1e1e334bb6d6db5d441c751d0b9ae2e1 commit r12-6892-g3989337e1e1e334bb6d6db5d441c751d0b9ae2e1 Author: Martin Liska <mliska@suse.cz> Date: Thu Jan 27 12:41:16 2022 +0100 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. Diff: --- gcc/analyzer/constraint-manager.cc | 2 +- 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 88b0988513a..ac1e4feaee5 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 e765e7f484f..ba835cba22c 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;
reply other threads:[~2022-01-27 11:46 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220127114622.2DE9B3870906@sourceware.org \ --to=marxin@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).