Add DIAGNOSTIC_IGNORE_STRINGOP_TRUNCATION
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 4 Jun 2018 13:33:07 +0000 (06:33 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 4 Jun 2018 13:35:07 +0000 (06:35 -0700)
commit23081219bfe58dd07b1e0a110728d7195155d0e2
tree07810f6f28073de1c0cff2bfcb52aedd8e6d4a8e
parent214b073cedadbdc7a0d272dc5ede79a5ab7785ea
Add DIAGNOSTIC_IGNORE_STRINGOP_TRUNCATION

Add DIAGNOSTIC_IGNORE_STRINGOP_TRUNCATION for GCC 8.1 to silence
-Wstringop-truncation warning:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85643

* diagnostics.h (DIAGNOSTIC_STRINGIFY_1): New.
(DIAGNOSTIC_STRINGIFY): Likewise.
(DIAGNOSTIC_IGNORE): Replace STRINGIFY with DIAGNOSTIC_STRINGIFY.
(DIAGNOSTIC_IGNORE_SELF_MOVE): Define empty if not defined.
(DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER): Likewise.
(DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): Likewise.
(DIAGNOSTIC_IGNORE_SWITCH_DIFFERENT_ENUM_TYPES): Likewise.
(DIAGNOSTIC_IGNORE_STRINGOP_TRUNCATION): New.
include/ChangeLog
include/diagnostics.h