From 9edb40f35127107e51158efb1325e15a4d5c458f Mon Sep 17 00:00:00 2001 From: acheron Date: Fri, 29 Nov 2024 17:17:07 +0100 Subject: [PATCH] idl: Ignore compiler warnings during builds --- idl/src/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idl/src/build.rs b/idl/src/build.rs index c5dbe4a91a..0802f775ff 100644 --- a/idl/src/build.rs +++ b/idl/src/build.rs @@ -167,7 +167,7 @@ fn build( if skip_lint { "TRUE" } else { "FALSE" }, ) .env("ANCHOR_IDL_BUILD_PROGRAM_PATH", program_path) - .env("RUSTFLAGS", "--cfg procmacro2_semver_exempt") + .env("RUSTFLAGS", "--cfg procmacro2_semver_exempt -A warnings") .current_dir(program_path) .stderr(Stdio::inherit()) .output()?;