build: Adding tricks to suppress unwanted warnings from clang (originated from boost)
diff --git a/helper/ndn-global-routing-helper.cc b/helper/ndn-global-routing-helper.cc
index a6f4601..ca03ffa 100644
--- a/helper/ndn-global-routing-helper.cc
+++ b/helper/ndn-global-routing-helper.cc
@@ -18,6 +18,12 @@
* Author: Alexander Afanasyev <alexander.afanasyev@ucla.edu>
*/
+#if __clang__
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wunused-variable"
+#pragma clang diagnostic ignored "-Wunneeded-internal-declaration"
+#endif
+
#include "ndn-global-routing-helper.h"
#include "ns3/ndn-l3-protocol.h"
diff --git a/ndn.cxx/name-component.cc b/ndn.cxx/name-component.cc
index 084d6be..20bdb6a 100644
--- a/ndn.cxx/name-component.cc
+++ b/ndn.cxx/name-component.cc
@@ -8,6 +8,11 @@
* Author: Alexander Afanasyev <alexander.afanasyev@ucla.edu>
*/
+#if __clang__
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wreorder"
+#endif
+
#include "name-component.h"
#include "detail/error.h"