Fix build warnings and .gitignore.

* Comment out unused local function for both clang and g++.
* Get rid of numerous Boost warnings for clang.
* Remove some unused local variables.
* Put TAGS into the .gitignore.
This commit is contained in:
Tom Ritchford
2014-07-24 12:17:18 -04:00
committed by Vinnie Falco
parent ac3cf05f1a
commit 96e1ec6d31
6 changed files with 24 additions and 15 deletions

View File

@@ -651,10 +651,14 @@ bool SHAMap::hasLeafNode (uint256 const& tag, uint256 const& targetNodeHash)
return false; // If this was a matching leaf, we would have caught it already
}
static void addFPtoList (std::list<SHAMap::fetchPackEntry_t>& list, const uint256& hash, const Blob& blob)
#if 0
static
void addFPtoList (std::list<SHAMap::fetchPackEntry_t>& list,
const uint256& hash, const Blob& blob)
{
list.push_back (SHAMap::fetchPackEntry_t (hash, blob));
}
#endif
/**
@param have A pointer to the map that the recipient already has (if any).

View File

@@ -59,9 +59,8 @@ private:
// request
beast::http::method_t method_;
std::string url_;
// response
int status_;
std::string reason_;
// message
@@ -102,7 +101,6 @@ public:
basic_message()
: method_ (beast::http::method_t::http_get)
, status_ (200)
, version_ (1, 1)
{
}
@@ -173,4 +171,4 @@ write (StreamBuf& stream, basic_message const& m)
} // ripple
#endif
#endif

View File

@@ -83,7 +83,6 @@
static const std::uint64_t tenTo14 = 100000000000000ull;
static const std::uint64_t tenTo14m1 = tenTo14 - 1;
static const std::uint64_t tenTo17 = tenTo14 * 1000;
static const std::uint64_t tenTo17m1 = tenTo17 - 1;
#include <ripple/module/data/protocol/STAmount.cpp>
#include <ripple/module/data/protocol/STAmountRound.cpp>