summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/macros.rs3
-rw-r--r--src/sys/socket/sockopt.rs3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/macros.rs b/src/macros.rs
index c357a063..018534fa 100644
--- a/src/macros.rs
+++ b/src/macros.rs
@@ -94,6 +94,9 @@ macro_rules! libc_bitflags {
/// }
/// }
/// ```
+// Some targets don't use all rules.
+#[allow(unknown_lints)]
+#[allow(unused_macro_rules)]
macro_rules! libc_enum {
// Exit rule.
(@make_enum
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])*