Closed cgkantidis closed 10 months ago
Hi @christosg88 and thanks for the PR! I will remove the redundant casts in the next release (either 4.0.1 or 4.1.0, depending how many changes it will have). Not sure about adding -Wuseless-cast
to README.md
though, since Clang doesn't support it, and the compilation instructions become a bit verbose. I will probably add it to the test script, though.
Pull request policy (please read)
Describe the changes
This pull request removes some useless static casts from type
size_t
to typesize_t
, and adds the warning specification to theREADME.md
.Style
Yes.
Linting
Yes
Testing
g++ BS_thread_pool_test.cpp -I../include -std=c++17 -O3 -Wall -Wextra -Wconversion -Wsign-conversion -Wpedantic -Weffc++ -Wshadow -Wuseless-cast -pthread -o BS_thread_pool_test
Additional information
None