Browse Source

Hide warning about readdir_r for now.

Adam Ierymenko 2 years ago
parent
commit
ebc1ed4015
1 changed files with 4 additions and 0 deletions
  1. 4 0
      osdep/OSUtils.cpp

+ 4 - 0
osdep/OSUtils.cpp

@@ -43,6 +43,10 @@
 
 
 #include "OSUtils.hpp"
 #include "OSUtils.hpp"
 
 
+#ifdef __GCC__
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
+
 namespace ZeroTier {
 namespace ZeroTier {
 
 
 unsigned int OSUtils::ztsnprintf(char *buf,unsigned int len,const char *fmt,...)
 unsigned int OSUtils::ztsnprintf(char *buf,unsigned int len,const char *fmt,...)