[Webkit-unassigned] [Bug 174506] Silence -Wformat-truncation warning in ConfigFile.cpp
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jul 14 09:41:38 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=174506
Michael Catanzaro <mcatanzaro at igalia.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mcatanzaro at igalia.com
--- Comment #1 from Michael Catanzaro <mcatanzaro at igalia.com> ---
Really strange, it cannot be suppressed by the usual pattern:
#if COMPILER(GCC) && GCC_VERSION_AT_LEAST(7, 0, 0)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wformat-truncation"
#endif
snprintf(logPathname, s_maxPathLength + 1, "%s/%s", m_configDirectory, filename);
#if COMPILER(GCC) && GCC_VERSION_AT_LEAST(7, 0, 0)
#pragma GCC diagnostic pop
#endif
No idea why. GCC does read and understand the pragma (else it would warn), it just doesn't work. Odd.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170714/90e0df03/attachment.html>
More information about the webkit-unassigned
mailing list