Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command line error D8021 : invalid numeric argument '/Wno-unused-parameter #3

Open
slogolin opened this issue Aug 4, 2022 · 0 comments

Comments

@slogolin
Copy link

slogolin commented Aug 4, 2022

warning: cl : Command line error D8021 : invalid numeric argument '/Wno-unused-parameter'

error: failed to run custom build command for `clips-sys v0.4.0`
  CC = None
  CFLAGS_x86_64-pc-windows-msvc = None
  CFLAGS = None  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  DEBUG = Some("true")
  running: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "CLIPS/core" "-W4" "-Wno-unused-parameter" "-Wno-missing-field-initializers" "-FoC:\\Users\\..\\project_folder\\target\\debug\\build\\clips-sys-a32bab0ecc4081d2\\out\\CLIPS/core\\agenda.o" "-c" "CLIPS/core\\agenda.c"  cargo:warning=cl : Command line error D8021 : invalid numeric argument '/Wno-unused-parameter'  exit code: 2

  --- stderr
  Filter { iter: Filter { iter: Map { iter: Filter { iter: Map { iter: ReadDir("CLIPS/core") } } } } }


  error occurred: Command "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "CLIPS/core" "-W4" "-Wno-unused-parameter" "-Wno-missing-field-initializers" "-FoC:\\Users\\..\\project_folder\\target\\debug\\build\\clips-sys-a32bab0ecc4081d2\\out\\CLIPS/core\\agenda.o" "-c" "CLIPS/core\\agenda.c" with args "cl.exe" did not execute successfully (status code exit code: 2).

I receive this error when attempting to compile clips-sys as part of the clips crate. It seems like this is being caused by a Linux compiler warning for unused parameters. I'm not sure how to locate the unused parameter to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant