Post
Topic
Board Announcements (Altcoins)
Re: [ANN][PHS][50% PoS] PhilosopherStone | NoPremine |10 month Dist | 1.6.4.1
by
sigesang
on 31/10/2014, 18:25:02 UTC
Code:
In file included from src/bignum.h:12:0,
                 from src/main.h:8,
                 from src/kernel.h:7,
                 from src/txdb-leveldb.cpp:17:
src/main.h: In member function 'std::string CTransaction::ToString() const':
src/util.h:181:69: warning: too many arguments for format [-Wformat-extra-args]
 #define strprintf(format, ...) real_strprintf(format, 0, __VA_ARGS__)
                                                                     ^
src/main.h:659:16: note: in expansion of macro 'strprintf'
         str += strprintf("(hash=%s, nTime=%d, ver=%d, vin.size=%"PRIszu", vout.size=%"PRIszu", nLockTime=%d)\n",
                ^

src/main.h
Code:
            nVersion,
             vin.size(),
             vout.size(),
-            nLockTime,
- strTxComment.substr(0,30).c_str()
- );
+            nLockTime);
 
         for (unsigned int i = 0; i < vin.size(); i++)
             str += "    " + vin[i].ToString() + "\n";

I don't like warnings, please fix this obvious typo