Pārlūkot izejas kodu

idl: Ignore compiler warnings during builds (#3396)

acheron 10 mēneši atpakaļ
vecāks
revīzija
6fbfc40fe8
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      idl/src/build.rs

+ 1 - 1
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()?;