We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 243445d commit 78f1c3fCopy full SHA for 78f1c3f
libraries/LEAmDNS/src/LEAmDNS_Structs.cpp
@@ -26,6 +26,13 @@
26
#include "LEAmDNS_Priv.h"
27
#include "LEAmDNS_lwIPdefs.h"
28
29
+// There are many strncpy()s here that immediately set the terminating \0, but GCC
30
+// doesn't notice that and emits a warning at -O3 -Wall -Wextra. After inspection,
31
+// disable that specific warning since it's not a real problem
32
+
33
+#pragma GCC diagnostic push
34
+#pragma GCC diagnostic ignored "-Wstringop-truncation"
35
36
namespace esp8266 {
37
38
/*
@@ -2020,3 +2027,5 @@ MDNSResponder::stcMDNSSendParameter::findCachedDomainOffset(const void* p_pHostn
2020
2027
} // namespace MDNSImplementation
2021
2028
2022
2029
} // namespace esp8266
2030
2031
+#pragma GCC diagnostic pop
0 commit comments