Kaydet (Commit) 1b12d5ec authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Work around GCC 7 mis-feature

<https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80354> "Poor support to silence
-Wformat-truncation=1"

Change-Id: I486f8a3a12896df3d9506f53bca44a318e23c991
üst f772812e
......@@ -668,6 +668,10 @@ rtl_arena_destructor (void * obj)
/** rtl_arena_activate()
*/
#if defined __GNUC__ && __GNUC__ >= 7
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wformat-truncation"
#endif
rtl_arena_type *
rtl_arena_activate (
rtl_arena_type * arena,
......@@ -715,6 +719,9 @@ rtl_arena_activate (
{
size = i * arena->m_quantum;
(void) snprintf (namebuf, sizeof(namebuf), "%s_%" SAL_PRIuUINTPTR, arena->m_name, size);
#if defined __GNUC__ && __GNUC__ >= 7
#pragma GCC diagnostic pop
#endif
arena->m_qcache_ptr[i - 1] = rtl_cache_create(namebuf, size, 0, nullptr, nullptr, nullptr, nullptr, arena, RTL_CACHE_FLAG_QUANTUMCACHE);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment