compiling on freebsd results in error #2137

Closed
Gibheer opened this Issue Jan 30, 2013 · 0 comments

Projects

None yet

2 participants

@Gibheer
Gibheer commented Jan 30, 2013

When compiling rubinius with a recent llvm version on freebsd, I get the following error

vm/state.hpp:13:12: error: private field 'vm_jit_' is not used [-Werror,-Wunused-private-field]

I could not figure out, how to solve that, as removing that line breaks stuff further down the road.

It happens on freebsd 9.0 and 9.1 with llvm 3.2 installed.

@dbussink dbussink added a commit that closed this issue Jan 30, 2013
@dbussink dbussink Explicitly use vm_jit inside state
This pointer was setup because the JIT needs access to it, but recent
clang versions saw it wasn't used in any of the C++ parts. This change
makes sure that we explicitly use it in at least one place so clang
doesn't complain.

Fixes #2137
cff54af
@dbussink dbussink closed this in cff54af Jan 30, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment