Skip to content

Conversation

@sipa
Copy link
Member

@sipa sipa commented May 11, 2012

The preprocessor magic in version.cpp require CLIENT_VERSION_* to be macro's, as they are stringified into CLIENT_DESC when no git-describe output is available.

@jgarzik
Copy link
Contributor

jgarzik commented May 11, 2012

Add a comment in the code, indicating this special condition...

@laanwj
Copy link
Member

laanwj commented May 11, 2012

Hmm. Alright.
ACK.

@sipa
Copy link
Member Author

sipa commented May 11, 2012

@jgarzik: added

@Diapolo
Copy link

Diapolo commented May 11, 2012

LOL @ the comment!

gmaxwell added a commit that referenced this pull request May 11, 2012
Fix version numbers of archive builds
@gmaxwell gmaxwell merged commit eb79342 into bitcoin:master May 11, 2012
coblee pushed a commit to litecoin-project/litecoin that referenced this pull request Jul 17, 2012
Fix version numbers of archive builds
@sipa sipa deleted the fixversion branch June 23, 2017 00:43
suprnurd pushed a commit to chaincoin-legacy/chaincoin that referenced this pull request Dec 5, 2017
lateminer pushed a commit to lateminer/bitcoin that referenced this pull request Jan 22, 2019
* Fix variable shadowing in blockstorage/sequential_files.cpp

blockstorage/sequential_files.cpp:178:71: warning: declaration shadows a local variable [-Wshadow]
                std::multimap<CBlockIndex *, CBlockIndex *>::iterator it = range.first;
                                                                      ^
blockstorage/sequential_files.cpp:157:29: note: previous declaration is here
    for (BlockMap::iterator it = mapBlockIndex.begin(); it != mapBlockIndex.end(); ++it)

* Fix variable shadowing in blockstorage/blockstorage.cpp

there was a redundant definition of a state variable that produced this warn:

blockstorage/blockstorage.cpp:127:34: warning: declaration shadows a local variable [-Wshadow]
                CValidationState state;
                                 ^
blockstorage/blockstorage.cpp:114:26: note: previous declaration is here
        CValidationState state;

* Remove unused variable in src/txdb.cpp

* Fix [-Wsign-compare] warns in blocksdb code

These are the warning as produced by clang:

blockstorage/blockleveldb.cpp:121:35: warning: comparison of integers of different signs: 'int' and 'uint64_t' (aka 'unsigned long') [-Wsign-compare]
        if (pindexOldest->nHeight >= nLastBlockWeCanPrune)
            ~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~
blockstorage/blockstorage.cpp:404:34: warning: comparison of integers of different signs: 'uint64_t' (aka 'unsigned long') and 'int' [-Wsign-compare]
            if (lastFinishedFile <= loadedblockfile && index->nHeight > blockfiles[lastFinishedFile].nHeightLast)
                ~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~
blockstorage/blockstorage.cpp:404:71: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
            if (lastFinishedFile <= loadedblockfile && index->nHeight > blockfiles[lastFinishedFile].nHeightLast)
                                                       ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
blockstorage/blockstorage.cpp:681:69: warning: comparison of integers of different signs: 'long' and 'size_t' (aka 'unsigned long') [-Wsign-compare]
            if (nCoinCacheMaxSize - nMaxCacheIncreaseSinceLastFlush > nTrimSize)
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants