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

Flag -Wno-unused-but-set-variable unsupported by clang #11

Open
wenkokke opened this issue Mar 11, 2020 · 0 comments
Open

Flag -Wno-unused-but-set-variable unsupported by clang #11

wenkokke opened this issue Mar 11, 2020 · 0 comments

Comments

@wenkokke
Copy link

Compilation following the instructions in the README fails on macOS, and probably with any operating system which primarily uses clang:

g++ -c -o main.obj main.cpp -MMD -Wall -Wextra -Werror -Wno-deprecated -Wno-unused-const-variable -std=c++0x -O3  -I../../common -I../../glpk-4.60/installed/include -I../../reluplex -I../../nnet -I.
In file included from main.cpp:18:
../../reluplex/Reluplex.h:3415:14: error: private field '_numOutOfBoundFixesViaBland' is not used [-Werror,-Wunused-private-field]
    unsigned _numOutOfBoundFixesViaBland;
             ^
1 error generated.

The flag -Wno-unused-but-set-variable should be replaced by -Wno-unused-private-field on these platforms.

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