shithub: orca

Download patch

ref: 4517b8759c590ea515c8f59dbb17312557bfe7f1
parent: 5cfa031a0ad4767a66db447ba554106935ad2582
author: cancel <cancel@cancel.fm>
date: Wed Jan 8 01:08:25 EST 2020

Cleanup no attrib warning in clang

--- a/thirdparty/sdd.c
+++ b/thirdparty/sdd.c
@@ -52,7 +52,11 @@
 #define SDD_HDR(s) ((sdd_header *)s - 1)
 
 #if defined(__GNUC__) || defined(__clang__)
+#if __has_attribute(noinline) && __has_attribute(noclone)
 #define SDD_NOINLINE __attribute__((noinline, noclone))
+#else
+#define SDD_NOINLINE __attribute__((noinline))
+#endif
 #elif defined(_MSC_VER)
 #define SDD_NOINLINE __declspec(noinline)
 #else