[Lldb-commits] [lldb] [lldb] Disable warning about codecvt_utf8 deprecation (NFC) (PR #112446)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Wed Oct 16 01:06:31 PDT 2024


================
@@ -57,6 +57,26 @@
 
 #include "llvm/ADT/FunctionExtras.h"
 
+#if defined(__clang__) && defined(__has_warning)
+#if __has_warning("-Wimplicit-fallthrough")
+#define EL_DISABLE_DEPRECATED_DECLARATION_WARNINGS                             \
+  _Pragma("clang diagnostic push")                                             \
+      _Pragma("clang diagnostic ignored \"-Wdeprecated-declarations\"")
+#define RESTORE_DEPRECATED_DECLARATION_WARNINGS _Pragma("clang diagnostic pop")
----------------
labath wrote:

This doesn't actually define the name that's defined in the fallback (and later used). I'd suggest changing the fallback to `#else #define MACRO` so that it catches this.

https://github.com/llvm/llvm-project/pull/112446


More information about the lldb-commits mailing list