1

I recently started getting this error:

error: unknown warning option '-Wno-unused-but-set-variable'; did you mean '-Wno-unused-const-variable'? [-Werror,-Wunknown-warning-option]

when compiling my codebase on mac os 12.2.1. I don't think I was getting this "error" on a previous mac os version -- I think it used to be a warning. Does anyone know how to resolve this error?

dzdang
  • 11
  • Sounds like it doesn't know about the -Wno-unused-but-set-variable option anymore? https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html – jesse_b Mar 30 '22 at 14:40
  • Possibly related: https://github.com/bazelbuild/bazel/issues/3622 – jesse_b Mar 30 '22 at 14:42

0 Answers0