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

Compile Error: async.c:243:14: error: variable ‘count’ set but not used #1

Open
JiangXL opened this issue Mar 17, 2019 · 2 comments

Comments

@JiangXL
Copy link

JiangXL commented Mar 17, 2019

I try to compile guile 1.8 from this source, but it failed:
async.c: In function ‘scm_i_queue_async_cell’: async.c:243:14: error: variable ‘count’ set but not used [-Werror=unused-but-set-variable] size_t count ; ^~~~~
Running environment: Debian 9(arm64) container inside chrome os .

ANY IDEA IS WELCOME!

@da-liii
Copy link
Contributor

da-liii commented Mar 17, 2019

Well, this is a compiler option. You may use -Wnoerror=unused-but-variable.

@fedelibre
Copy link

For the records, I'm compiling guile 1.8.8 with gcc 9.2.0 and it seems that the correct compiler option is -Wno-unused-but-set-variable. Found out in config.log:

gcc: error: unrecognized command line option '-Wnoerror=unused-but-set-variable'; did you mean '-Wno-unused-but-set-variable'?

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

3 participants