summaryrefslogtreecommitdiff
path: root/src/sys/socket
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2022-05-13 19:02:58 -0600
committerAlan Somers <asomers@gmail.com>2022-05-13 21:01:21 -0600
commit7dff51fbfc23aa9026557e9c47006723264ebc16 (patch)
treecbc96f07c7b806536f54e537a79c895c29d04d6c /src/sys/socket
parent6f57f2e11d787e1ccea8b59bc0daa1de07a114a9 (diff)
downloadnix-7dff51fbfc23aa9026557e9c47006723264ebc16.zip
Fix "unused_macro_rules" warnings with the latest nightly compiler.
It just so happens that Redox, OpenBSD, Dragonfly, and uclibc don't use some of the rules for two internal macros.
Diffstat (limited to 'src/sys/socket')
-rw-r--r--src/sys/socket/sockopt.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sys/socket/sockopt.rs b/src/sys/socket/sockopt.rs
index e80b09e7..14fea808 100644
--- a/src/sys/socket/sockopt.rs
+++ b/src/sys/socket/sockopt.rs
@@ -129,6 +129,9 @@ macro_rules! getsockopt_impl {
/// * `$ty:ty`: type of the value that will be get/set.
/// * `$getter:ty`: `Get` implementation; optional; only for `GetOnly` and `Both`.
/// * `$setter:ty`: `Set` implementation; optional; only for `SetOnly` and `Both`.
+// Some targets don't use all rules.
+#[allow(unknown_lints)]
+#[allow(unused_macro_rules)]
macro_rules! sockopt_impl {
($(#[$attr:meta])* $name:ident, GetOnly, $level:expr, $flag:path, bool) => {
sockopt_impl!($(#[$attr])*