Build with --enable-werror
under OS X.
As suggested by @TheBlueMatt in #10866. This will allow catching violations using Travis CI which does a clang
build for OS X.
Build with --enable-werror
under OS X.
As suggested by @TheBlueMatt in #10866. This will allow catching violations using Travis CI which does a clang
build for OS X.
@TheBlueMatt Yes, that is a bit weird. I verified this change locally using these four tests before submitting the PR:
0$ CC=clang CXX=clang++ ./configure --enable-werror && make clean && make check; echo $?
1…
2# fails as expected:
3Makefile:5576: recipe for target 'libbitcoin_server_a-net_processing.o' failed
42
5$ CC=clang CXX=clang++ ./configure && make clean && make check; echo $?
6…
7# passes as expected:
80
9$ CC=gcc CXX=g++ ./configure --enable-werror && make clean && make check; echo $?
10…
11# passes as expected:
120
13$ CC=gcc CXX=g++ ./configure && make clean && make check; echo $?
14…
15# passes as expected:
160
17$ clang++ --version | head -1
18clang version 3.8.0-2ubuntu4 (tags/RELEASE_380/final)
Locally everything works as expected.
Does the Travis CI build run with --enable-werror
? I cannot find that in .travis.yml.
--enable-werror
is currently not set on travis.
Yea, I like this!
My only concern is that the annotations are infectious, so this may cause us to have to add them while doing large refactors where one annotation already exists. That’s a good problem to have though, IMO.
utACK after #10866 goes in.
@TheBlueMatt Oh, nice! What is the best way to proceed from here?
Should the changing of sync.h
primitives from boost to std be put in a separate PR of yours, or should I simply incorporate your changes into this PR?
These are the changes: https://github.com/practicalswift/bitcoin/compare/thread-safety-analysis...TheBlueMatt:2017-08-test-10923
@practicalswift as per meeting split the “enable werror on Travis” part from the Wthread-safety-analysis part. Maybe just leave this PR as the first and move the second back to the did-thread-safety-analysis pr?
On August 16, 2017 4:09:42 PM EDT, practicalswift notifications@github.com wrote:
@TheBlueMatt Oh, nice! What is the best way to proceed from here? Shall I incorporate your changes into this PR or should I cherry-pick the individual commits?
– You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/bitcoin/bitcoin/pull/10923#issuecomment-322884443