summaryrefslogtreecommitdiffstats
path: root/libsyscalls
diff options
context:
space:
mode:
Diffstat (limited to 'libsyscalls')
-rw-r--r--libsyscalls/internal-begin.h7
-rw-r--r--libsyscalls/internal-end.h5
2 files changed, 12 insertions, 0 deletions
diff --git a/libsyscalls/internal-begin.h b/libsyscalls/internal-begin.h
index 0d89bb7..56faadf 100644
--- a/libsyscalls/internal-begin.h
+++ b/libsyscalls/internal-begin.h
@@ -8,6 +8,13 @@
#include <stddef.h>
+#if defined(__clang__)
+# pragma clang diagnostic push
+# pragma clang diagnostic ignored "-Wdocumentation"
+# pragma clang diagnostic ignored "-Wunknown-attributes"
+#endif
+
+
/**
* Opaque type for symbol printer function identification
*/
diff --git a/libsyscalls/internal-end.h b/libsyscalls/internal-end.h
index 2aeb2f0..e75a5ce 100644
--- a/libsyscalls/internal-end.h
+++ b/libsyscalls/internal-end.h
@@ -22,3 +22,8 @@
#undef LIBSYSCALLS_MAKE_ANNOTATED_NUMERICALS_
#undef LIBSYSCALLS_MAKE_STRUCTS_AND_UNIONS_
#undef LIBSYSCALLS_MAKE_FIXED_ARRAYS_
+
+
+#if defined(__clang__)
+# pragma clang diagnostic pop
+#endif