Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: fix NULL references to be acceptable by Clang
- On some platforms NULL evaluates to nullptr, which will require a cast to the right type to be able to compile. error: reinterpret_cast from 'nullptr_t' to 'ContextWQ *' - It is a delicate change since otherwise GCC will start complaining about the reverse: error: invalid static_cast from type 'const long int' to type 'ContextWQ*' By casting right at the instance of NULL both compilers are happy. Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
- Loading branch information
1 parent
3aca476
commit cbb2d65
Showing
6 changed files
with
13 additions
and
12 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
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