danmar/cppcheck — pull request #129 by acmyo (2013-01-29 05:44:03+00:00)
Title: fix misspellings & gcc v3.4.6 warnings

This pull request includes two commits:

1. fix typos / misspellings
- Fix misspelling within comments, variable/function names, stdout messages
- changes the name of an error code: "stlBoundries" changed to "stlBoundaries", which may have user-ramifications

2. fix gcc v3.4.6 32bit & 64bit warnings

- fixes gcc v3.4.6 warnings, except for those in tinyxml and "-Wmissing-declarations" makefile warnings
- in Preprocessor::handleIncludes(), replace a vector with deque (see vector warning below).
- this is the only vector in the codebase
- vector is actually a case of template specialization, and is not recommended, according to the following links:

http://stackoverflow.com/q/6461487
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2160.html
http://stackoverflow.com/q/670308

- in the codebase before and after this change, testrunner SEGVs in a number of places on gcc v3.4.6, including Check::~Check(), among others
- fc42fc95 fixes this particular runtime issue for DJGPP & __sun

gcc 3.4.6 warnings:
```
lib/token.cpp: In member function `std::string Token::stringifyList(bool, bool, bool, bool, bool, const std::vector >*, const Token*) const':
lib/token.cpp:977: warning: converting of negative value `-0x00000000000000001' to `unsigned int'

/opt/gcc-3.4.6/lib/gcc/x86_64-unknown-linux-gnu/3.4.6/../../../../include/c++/3.4.6/bits/stl_bvector.h: In instantiation of `std::_Bvector_base >::_Bvector_impl':
/opt/gcc-3.4.6/lib/gcc/x86_64-unknown-linux-gnu/3.4.6/../../../../include/c++/3.4.6/bits/stl_bvector.h:375: instantiated from `std::_Bvector_base >'
/opt/gcc-3.4.6/lib/gcc/x86_64-unknown-linux-gnu/3.4.6/../../../../include/c++/3.4.6/bits/stl_bvector.h:416: instantiated from `std::vector >'
lib/preprocessor.cpp:1933: instantiated from here
/opt/gcc-3.4.6/lib/gcc/x86_64-unknown-linux-gnu/3.4.6/../../../../include/c++/3.4.6/bits/stl_bvector.h:356: warning: `std::_Bvector_base >::_Bvector_impl::_M_finish' contains empty classes which may cause base classes to be placed at different locations in a future version of GCC

test/testtokenize.cpp: In member function `void TestTokenizer::createLinks()':
test/testtokenize.cpp:5967: warning: cast from pointer to integer of different size
test/testtokenize.cpp:5967: warning: cast from pointer to integer of different size
test/testtokenize.cpp:5968: warning: cast from pointer to integer of different size
test/testtokenize.cpp:5968: warning: cast from pointer to integer of different size
test/testtokenize.cpp:5971: warning: cast from pointer to integer of different size
test/testtokenize.cpp:5971: warning: cast from pointer to integer of different size
test/testtokenize.cpp:5972: warning: cast from pointer to integer of different size
test/testtokenize.cpp:5972: warning: cast from pointer to integer of different size
test/testtokenize.cpp:5975: warning: cast from pointer to integer of different size
test/testtokenize.cpp:5975: warning: cast from pointer to integer of different size
test/testtokenize.cpp:5976: warning: cast from pointer to integer of different size
test/testtokenize.cpp:5976: warning: cast from pointer to integer of different size
test/testtokenize.cpp:5979: warning: cast from pointer to integer of different size
test/testtokenize.cpp:5980: warning: cast from pointer to integer of different size
test/testtokenize.cpp:5997: warning: cast from pointer to integer of different size
test/testtokenize.cpp:5997: warning: cast from pointer to integer of different size
test/testtokenize.cpp:5998: warning: cast from pointer to integer of different size
test/testtokenize.cpp:5998: warning: cast from pointer to integer of different size
test/testtokenize.cpp:6015: warning: cast from pointer to integer of different size
test/testtokenize.cpp:6015: warning: cast from pointer to integer of different size
test/testtokenize.cpp:6016: warning: cast from pointer to integer of different size
test/testtokenize.cpp:6016: warning: cast from pointer to integer of different size
```