Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 3911: clang -fsanitize warnings (#125)
Fixes warnings from clang when -fsanitize is used. Many of these are also part of the bug 4738 issues. error: private field 'callback' is not used [-Werror,-Wunused-private-field] error: private field 'cbdata' is not used [-Werror,-Wunused-private-field] error: private field 'IO' is not used [-Werror,-Wunused-private-field] error: variable 'wccp2_router_id_element' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration] We cannot set these warnings as default options yet because the STUB code intentionally does not use any private class members, so it would error on every unit test. * Convert Store::LocalSearch to C++ initialization * DiskThreadsDiskFile::IO is unused after setting by the constructor Also, take the opportunity to redo the construct using C++11 initialization * Remove currently unused wccp2_router_id_element This resolves clang warnings until the WCCP redesign is completed.
- Loading branch information
Showing
5 changed files
with
12 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters