diff options
| author | Giel van Schijndel <[email protected]> | 2011-07-13 13:43:24 +0200 |
|---|---|---|
| committer | Giel van Schijndel <[email protected]> | 2011-07-13 13:43:24 +0200 |
| commit | 93752b8a3934468942d235b3920162c36384b45a (patch) | |
| tree | 98b55530f9c9a96e611545a16fd4626841af2c30 /src/rpc.cpp | |
| parent | Merge pull request #404 from TheBlueMatt/newenc (diff) | |
| download | discoin-93752b8a3934468942d235b3920162c36384b45a.tar.xz discoin-93752b8a3934468942d235b3920162c36384b45a.zip | |
fix warning: variable ‘nMinDepth’ set but not used [-Wunused-but-set-variable]
Signed-off-by: Giel van Schijndel <[email protected]>
Diffstat (limited to 'src/rpc.cpp')
| -rw-r--r-- | src/rpc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpc.cpp b/src/rpc.cpp index 4016d265c..fa14fc0b2 100644 --- a/src/rpc.cpp +++ b/src/rpc.cpp @@ -765,9 +765,9 @@ Value movecmd(const Array& params, bool fHelp) string strFrom = AccountFromValue(params[0]); string strTo = AccountFromValue(params[1]); int64 nAmount = AmountFromValue(params[2]); - int nMinDepth = 1; if (params.size() > 3) - nMinDepth = params[3].get_int(); + // unused parameter, used to be nMinDepth, keep type-checking it though + (void)params[3].get_int(); string strComment; if (params.size() > 4) strComment = params[4].get_str(); |