]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
build: ensure clang won't complain about documentation of linux headers
authorVincent Bernat <vincent@bernat.im>
Sun, 7 Aug 2016 10:23:28 +0000 (12:23 +0200)
committerVincent Bernat <vincent@bernat.im>
Sun, 7 Aug 2016 10:23:28 +0000 (12:23 +0200)
src/daemon/lldpd.h

index 19091d2db19812a00de6e770d6199319fea6d898..455ba8b2dfc64e0eb746e8d42c051d92ada7486c 100644 (file)
 #include <sys/un.h>
 
 #ifdef HOST_OS_LINUX
+# if defined(__clang__)
+#  pragma clang diagnostic push
+#  pragma clang diagnostic ignored "-Wdocumentation"
+# endif
 # include <linux/ethtool.h>
+# if defined(__clang__)
+#  pragma clang diagnostic pop
+# endif
 #endif
 
 #if HAVE_VFORK_H