Auto merge of #2894 - per-gron:dont-export-unless-needed, r=str4d
Make some globals static that can be I wrote this patch as part of making a Bazel build system but it really is independent from that so I'm putting this as a separate PR. External linkage does not help and just encourages sloppy dependencies (ie using symbols only declared in a cpp file in some other cpp file) and can lead to weird issues when there are name collisions.
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
|
||||
#include <boost/optional.hpp>
|
||||
|
||||
EhSolverCancelledException solver_cancelled;
|
||||
static EhSolverCancelledException solver_cancelled;
|
||||
|
||||
template<unsigned int N, unsigned int K>
|
||||
int Equihash<N,K>::InitialiseState(eh_HashState& base_state)
|
||||
|
||||
Reference in New Issue
Block a user