clang-tidy: suppress unknown warning group
The following errors were reported during clang-tidy enablement due
to unknown warning group. This temporary fix is to extend the
existing pragma for the clang, until a permanent solution is
implemented.
'''
frup.cpp:630:32: [0m[0;1;31merror: [0m[1munknown warning group '-Wstringop-truncation', ignored [-Werror,-Wunknown-warning-option]
'''
Tested: Build and unit testing verified.
Change-Id: If95f70354fedca7d041f0529ae1c4fc8e03ef7c5
Signed-off-by: Jayanth Othayoth <ojayanth@gmail.com>
diff --git a/frup.cpp b/frup.cpp
index 00fcda8..fb06e80 100644
--- a/frup.cpp
+++ b/frup.cpp
@@ -627,7 +627,11 @@
snprintf(bin_byte, 3, "%02x", vpd_key_val[val]);
#pragma GCC diagnostic push
+#ifdef __clang__
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
+#else
#pragma GCC diagnostic ignored "-Wstringop-truncation"
+#endif
/* Its a running string so strip off the '\0' */
strncat(bin_copy, bin_byte, 2);
#pragma GCC diagnostic pop