ports/devel/gcc-arm-embedded/files/patch-src_gdb_gdb_common_diagnostics.h
Lev A. Serebryakov ee1cdeab01 Fix build with clang 3 (10-STABLE) and clang 6 (12-CURRENT) compilers.
Add option (default ON) to create version-independend symlink for Arduino IDE.
2018-01-25 14:01:37 +00:00

15 lines
590 B
C

--- src/gdb/gdb/common/diagnostics.h.orig 2017-06-28 22:30:08.000000000 +0300
+++ src/gdb/gdb/common/diagnostics.h 2018-01-24 17:11:46.847340000 +0300
@@ -33,7 +33,11 @@
#if defined (__clang__) /* clang */
-# define DIAGNOSTIC_IGNORE_SELF_MOVE DIAGNOSTIC_IGNORE ("-Wself-move")
+# if __has_warning("-Wself-move")
+# define DIAGNOSTIC_IGNORE_SELF_MOVE DIAGNOSTIC_IGNORE ("-Wself-move")
+# else
+# define DIAGNOSTIC_IGNORE_SELF_MOVE
+# endif
# define DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER \
DIAGNOSTIC_IGNORE ("-Wdeprecated-register")
# define DIAGNOSTIC_IGNORE_UNUSED_FUNCTION \